I have two rad grid (Grid A, Grid B) controls in my .aspx page inherited from Microsoft.Practices.CompositeWeb.Web.UI.Page class. The datasource for GridA is assigned in the .aspx.cs file using gridA.DataSource property assigned with a DataTable for it, its data is getting displayed when the page gets initialized.
But the data for GridB need be updated with a DataSource (which gets created based on the GridA's row selection). When I assign the DataSource for GridB, its not getting updated and nothing is displayed on it.
Here is the related code snippets from my page!
.ASPX.CS:
radGridClientDetails_ItemCommand
{
// GridA is ItemCommand event, the event is getting fired properly and I am able to debug all the code blocks
if(e.CommandName == "RowClick")
{
// Gets the selected clientDbId from GridA's selected row
selectedClientDbId =
Convert.ToInt32(this.radGridClientDetails.SelectedValue.ToString());
// Generates the new datasource based on the dbId
_generateOutputDataFinderService.GetReportSpecDetails(clientDatabaseID);
// Assigining it to the GridB datasource
this.radGridReportDetails.DataSource = value;
}
}
.ASPX:
<
asp:Content>
<
telerik:RadAjaxPanel>
<telerik:radgrid id="radGridA">
</telerik:radgrid>
</telerik:RadAjaxPanel>
<telerik:RadAjaxPanel>
<telerik:radgrid id="radGridB">
</telerik:radgrid>
</telerik:RadAjaxPanel>
-- No <asp:ObjectDataSource>
</
asp:Content>
Please let me know where I am missing something in order to show the data in the GridB radGrid... Thanks a lot for your support..
Thanks,
Selva