Hi,
I am using Infragistics 7.1.
I have 2 grids. When I select a row in the first grid, I fire the OnSelectedRowChange event. The event fires up. I am building another gird based on the selected row in the onselectedrowchange event. During execution no exceptions happen in this event. Yet the second grid is not rendered on the web page.
Do I need to use some other event handler? I tried to explicitly call the pre_render function, but that doesnt happen after the Onselectedrowchange event.
Please let me know of a possible solution.
Thanks,
Shalini.
Hello,Could you please provide little bit more information about grids declaration.ASPX declaration, code-behind – anything that can get us started is welcome.Also you can take a look at the links below:Samples: http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htmHelp: http://help.infragistics.com/NetAdvantage/NET/2008.3/CLR3.5/Thanks.
Sorry for unclear explanation. I will try to calrify. The 2 grids on .ascx page look like:
<igtbl:UltraWebGrid ID="servicesGrid" runat="server" EnableAppStyling="False" EnableViewState="True"
DisplayLayout-ViewType="Flat" OnSelectedRowsChange="servicesGrid_SelectedRowsChange"
DisplayLayout-AutoGenerateColumns="False">
<DisplayLayout RowHeightDefault="16px" Version="4.00" BorderCollapseDefault="Separate"
CellClickActionDefault="Edit" SelectTypeRowDefault="Single" RowSelectorsDefault="Yes"
AllowSortingDefault="OnClient" AllowDeleteDefault="No" AllowUpdateDefault="No"
AllowColSizingDefault="Free" TableLayout="Auto" AllowColumnMovingDefault="OnServer"
HeaderClickActionDefault="SortMulti" ScrollBarView="Vertical" ScrollBar="Auto"
RowsRange="50" AutoGenerateColumns="false">
<AddNewBox>
<Style BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
</Style>
</AddNewBox>
<Pager>
</Pager>
<HeaderStyleDefault Height="16px" Font-Size="10pt" Font-Names="Arial" Font-Bold="True"
BorderStyle="Solid" ForeColor="Black" BackColor="#B9CBFF" CustomRules="background-image:url(./images/pei_TableHeaderImage_blue.png);background-repeat:repeat-x;"
BackgroundImage="./images/pei_TableHeaderImage_blue.png">
<Padding Bottom="4px" Left="4px" Top="4px" Right="4px"></Padding>
<BorderDetails ColorTop="#3741AD" WidthLeft="0px" WidthTop="0px" ColorLeft="#3741AD"
ColorBottom="#3741AD" WidthBottom="1px"></BorderDetails>
</HeaderStyleDefault>
<FrameStyle BorderWidth="0px" Font-Size="10pt" Font-Names="Arial" BorderStyle="Solid"
HorizontalAlign="Center" BorderColor="#3741AD">
</FrameStyle>
<FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White">
</BorderDetails>
</FooterStyleDefault>
<ClientSideEvents />
<EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
</EditCellStyleDefault>
<SelectedRowStyleDefault Font-Bold="True" ForeColor="White" BackColor="#000080" CustomRules="background-image:url(./images/pei_SelectedItemImage_blue.png);background-repeat:repeat-x;">
</SelectedRowStyleDefault>
<RowAlternateStyleDefault>
</RowAlternateStyleDefault>
<RowStyleDefault Cursor="Default" BorderWidth="1px" BorderColor="Black" BorderStyle="Solid"
BackColor="White">
<Padding Left="3px" Right="3px"></Padding>
<BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails>
</RowStyleDefault>
</DisplayLayout>
</igtbl:UltraWebGrid>
<igtbl:UltraWebGrid ID="operationsGrid" runat="server" EnableAppStyling="False"
EnableViewState="True" onload="operationsGrid_Load"><DisplayLayout RowHeightDefault="16px" Version="4.00" BorderCollapseDefault="Separate"
In the onselectedrowchange event handler called from services grid I am adding columns to the operations grid and databinding to an array as follows
UltraGridRow servicesGridRow = new UltraGridRow();
servicesGridRow = e.SelectedRows[0];
this.selectedService = servicesGridRow.Cells[0].Text;
....
int columnIndex = 0;
UltraGridBand operationsBand = new UltraGridBand(true);
this.operationsGrid.Bands.Add(operationsBand);
this.operationsGrid.Bands[0].Columns.Add("ContractName");
columnIndex = this.operationsGrid.Bands[0].Columns.Count - 1;
this.operationsGrid.Bands[0].Columns[columnIndex].BaseColumnName = "ContractName";
this.operationsGrid.Bands[0].Columns.Add("DisplayName", "Operation Name");
this.operationsGrid.Bands[0].Columns[columnIndex].BaseColumnName = "DisplayName";
.....
this.operationsGrid.DataSource = functionMonitorArray;
this.operationsGrid.DataBind();
Hopefully this gives you more clear view as to what I am doing.