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
185
WebCombo Grid Row Rendering Problem
posted

Hi, There is row rendering problem on webcombo. When there is 1 row on grid of webcombo, the row isn't visible onclient.When i add second row on page_load rows are visible on client.

protected void Page_Load ( object sender, EventArgs e ) {if(!Page.IsPostBack) {  UltraWebGrid comboGrid = this.WebCombo1.Controls[0] as UltraWebGrid;  if(comboGrid != null) {   comboGrid.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes;   comboGrid.DisplayLayout.AllowUpdateDefault = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;   comboGrid.DisplayLayout.MergeStyles = false;  }  //this.AddRowToCombo("", "", "");  this.AddRowToCombo("0", "", "");  }

}

private void AddRowToCombo ( string id,string name,string age ) {

WebCombo1.Rows.Add();

int rowIndex=WebCombo1.Rows.Count-1;

WebCombo1.Rows[rowIndex].Cells[0].Value = id;

WebCombo1.Rows[rowIndex].Cells[1].Value = name;

WebCombo1.Rows[rowIndex].Cells[2].Value = age;

}

 

Html Design:

<igcmbo:WebCombo ID="WebCombo1" runat="server" BackColor="White"

BorderColor="#7B9EBD" BorderStyle="Solid" BorderWidth="1px"

DropImage1="/ig_common/images/igcmbo_mscrmup.gif"

DropImage2="/ig_common/images/igcmbo_mscrmdown.gif"

DropImageXP1="/ig_common/images/igcmbo_mscrmup.gif"

DropImageXP2="/ig_common/images/igcmbo_mscrmdown.gif" Editable="True"

ForeColor="Black" SelBackColor="171, 192, 231" SelForeColor="Black"

Version="3.00" DataTextField="Name" DataValueField="Id"

ComboTypeAhead="Simple" Font-Names="Tahoma" Font-Size="9pt" Height="21px"

Width="100%">

<Columns>

<igtbl:UltraGridColumn BaseColumnName="Id" Key="Id">

<header caption="ID">

</header>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Name" Key="Name">

<header caption="Name">

<RowLayoutColumnInfo OriginX="1" />

</header>

<Footer>

<RowLayoutColumnInfo OriginX="1" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Age" Key="Age">

<header caption="Age">

<RowLayoutColumnInfo OriginX="2" />

</header>

<Footer>

<RowLayoutColumnInfo OriginX="2" />

</Footer>

</igtbl:UltraGridColumn>

</Columns>

<expandeffects shadowcolor="LightGray" />

<dropdownlayout bordercollapse="Separate" rowheightdefault="20px"

version="3.00" allowcolsizing="Free" dropdownheight="250px"

dropdownwidth="500px" rowselectors="No"

stationarymargins="Header" tablelayout="Fixed">

<framestyle backcolor="White" borderstyle="None" cursor="Default" font-names="Verdana" font-size="9pt" height="250px"

width="500px">

</framestyle>

<HeaderStyle BackColor="#E9E7D7" BorderStyle="Solid">

<borderdetails colorleft="White" colortop="LightGray" widthleft="1px" widthtop="1px" colorbottom="DarkGray" stylebottom="Solid"

styletop="Outset" widthbottom="2px" />

</HeaderStyle>

<RowStyle BackColor="White" BorderColor="Gray" BorderStyle="Solid"

BorderWidth="1px">

<borderdetails widthleft="0px" widthtop="0px" />

</RowStyle>

<SelectedRowStyle BackColor="#ABC0E7" ForeColor="Black" />

</dropdownlayout>

<ClientSideEvents AfterCloseUp="WebCombo1_AfterCloseUp"

AfterDropDown="WebCombo1_AfterDropDown"

AfterSelectChange="WebCombo1_AfterSelectChange"

BeforeCloseUp="WebCombo1_BeforeCloseUp"

BeforeDropDown="WebCombo1_BeforeDropDown" EditKeyDown="WebCombo1_EditKeyDown"

EditKeyUp="WebCombo1_EditKeyUp" />

</igcmbo:WebCombo>