Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Text inside GridCell(web combo editor control) disappears when I move the mouse out of focus
posted

hi,

In our web application I used UltraWebGrid and UltraWebCombo. Grid is bound with sql data source.Which has 2 columns.

Country Code,

Country Name.

Country Name column has editor control of web combo.

Webcombo also bound to sql data source.Which has column Country Name.

DataTextField - CountryName

DataValueField - CountryName

Editable - true

When user wants to edit the grid country name cell he can type new value in  grid country name column.i.e, webcombo value.When he enters the new value webcombo shows dropdown with empty values. When user moves the focus out of the cell it clears the value.

Even when user enters new value and hit ENTER key new value in country name grid column cell disappears.

Is it bug or do I need to set any properties. If you want I can share the sample code here.

 

 <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server"
        DataSourceID="SqlDataSource2" Height="200px" Width="1000px">
        <bands>
            <igtbl:UltraGridBand>
                <Columns>
                    <igtbl:UltraGridColumn BaseColumnName="BankID" DataType="System.Int32"
                        IsBound="True" Key="BankID">
                        <Header Caption="BankID">
                        </Header>
                    </igtbl:UltraGridColumn>
                    <igtbl:UltraGridColumn BaseColumnName="BankName" IsBound="True" Key="BankName"  Width="500px" Type="Custom" EditorControlID="WebCombo1">
                        <Header Caption="BankName">
                            <RowLayoutColumnInfo OriginX="1" />
                        </Header>
                        <Footer>
                            <RowLayoutColumnInfo OriginX="1" />
                        </Footer>
                    </igtbl:UltraGridColumn>
                </Columns>
                <addnewrow view="Bottom" visible="Yes">
                </addnewrow>
            </igtbl:UltraGridBand>
        </bands>
        <displaylayout allowcolsizingdefault="Free" allowcolumnmovingdefault="OnServer"
            allowdeletedefault="Yes" allowsortingdefault="OnClient"
            allowupdatedefault="Yes" bordercollapsedefault="Separate"
            headerclickactiondefault="SortMulti" name="UltraWebGrid1"
            rowheightdefault="20px" rowselectorsdefault="No"
            selecttyperowdefault="Extended" stationarymargins="Header"
            stationarymarginsoutlookgroupby="True" tablelayout="Fixed" version="4.00"
            viewtype="OutlookGroupBy">
            <framestyle backcolor="Window" bordercolor="InactiveCaption"
                borderstyle="Solid" borderwidth="1px" font-names="Microsoft Sans Serif"
                font-size="8.25pt" height="200px" width="1000px">
            </framestyle>
                        <pager minimumpagesfordisplay="2">
                <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                <borderdetails colorleft="White" colortop="White" widthleft="1px"
                    widthtop="1px" />
                </PagerStyle>
            </pager>
            <editcellstyledefault borderstyle="None" borderwidth="0px">
            </editcellstyledefault>
            <footerstyledefault backcolor="LightGray" borderstyle="Solid" borderwidth="1px">
                <borderdetails colorleft="White" colortop="White" widthleft="1px"
                    widthtop="1px" />
            </footerstyledefault>
            <headerstyledefault backcolor="LightGray" borderstyle="Solid"
                horizontalalign="Left">
                <borderdetails colorleft="White" colortop="White" widthleft="1px"
                    widthtop="1px" />
            </headerstyledefault>
            <rowstyledefault backcolor="Window" bordercolor="Silver" borderstyle="Solid"
                borderwidth="1px" font-names="Microsoft Sans Serif" font-size="8.25pt">
                <padding left="3px" />
                <borderdetails colorleft="Window" colortop="Window" />
            </rowstyledefault>
            <groupbyrowstyledefault backcolor="Control" bordercolor="Window">
            </groupbyrowstyledefault>
            <groupbybox>
                <boxstyle backcolor="ActiveBorder" bordercolor="Window">
                </boxstyle>
            </groupbybox>
            <addnewbox hidden="False">
                <boxstyle backcolor="Window" bordercolor="InactiveCaption" borderstyle="Solid"
                    borderwidth="1px">
                    <borderdetails colorleft="White" colortop="White" widthleft="1px"
                        widthtop="1px" />
                </boxstyle>
            </addnewbox>
            <activationobject bordercolor="" borderwidth="">
            </activationobject>
            <filteroptionsdefault>
                <filterdropdownstyle backcolor="White" bordercolor="Silver" borderstyle="Solid"
                    borderwidth="1px" customrules="overflow:auto;"
                    font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px" height="300px"
                    width="200px">
                    <padding left="2px" />
                </filterdropdownstyle>
                <filterhighlightrowstyle backcolor="#151C55" forecolor="White">
                </filterhighlightrowstyle>
                <filteroperanddropdownstyle backcolor="White" bordercolor="Silver"
                    borderstyle="Solid" borderwidth="1px" customrules="overflow:auto;"
                    font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px">
                    <padding left="2px" />
                </filteroperanddropdownstyle>
            </filteroptionsdefault>
        </displaylayout>
    </igtbl:UltraWebGrid>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
        ConnectionString="<%$ ConnectionStrings:Con %>"
        SelectCommand="GetBanks" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:Parameter DefaultValue="105" Name="LoanID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <igcmbo:WebCombo ID="WebCombo1" runat="server" BackColor="White"  Editable="true" DataTextField="BankName" DataValueField="BankName" ComboTypeAhead="Suggest"
        BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" EnableXmlHTTP="true"
        DataSourceID="SqlDataSource1" ForeColor="Black" SelBackColor="DarkBlue"
        SelForeColor="White" Version="4.00">
        <Columns>
            <igtbl:UltraGridColumn BaseColumnName="BankID" DataType="System.Int32"
                IsBound="True" Key="BankID">
                <header caption="BankID">
                </header>
            </igtbl:UltraGridColumn>
            <igtbl:UltraGridColumn BaseColumnName="BankName" IsBound="True" Key="BankName" >
                <header caption="BankName">
                    <RowLayoutColumnInfo OriginX="1" />
                </header>
                <Footer>
                    <RowLayoutColumnInfo OriginX="1" />
                </Footer>
            </igtbl:UltraGridColumn>
        </Columns>
        <expandeffects shadowcolor="LightGray" />
        <dropdownlayout basetablename="" bordercollapse="Separate"  ColHeadersVisible="No" 
            rowheightdefault="20px" version="4.00" XmlLoadOnDemandType="Accumulative">
            <HeaderStyle BackColor="LightGray" BorderStyle="Solid">
            <borderdetails colorleft="White" colortop="White" widthleft="1px"
                widthtop="1px" />
            </HeaderStyle>
            <framestyle backcolor="Silver" borderstyle="Ridge" borderwidth="2px"
                cursor="Default" font-names="Verdana" font-size="10pt" height="130px"
                width="325px">
            </framestyle>
            <RowStyle BackColor="White" BorderColor="Gray" BorderStyle="Solid"
                BorderWidth="1px">
            <borderdetails widthleft="0px" widthtop="0px" />
            </RowStyle>
            <SelectedRowStyle BackColor="DarkBlue" ForeColor="White" />
           
        </dropdownlayout>
   
    </igcmbo:WebCombo>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:Comps3 %>"
        SelectCommand="SELECT BankID, BankName FROM Banks"></asp:SqlDataSource>