Hello,
I have a hierarchy grid with one nested level.
I'm having some issues with HierarchyLoadMode setting set to Client on my grid.
I load my grid on during Page_Load event, and it is loaded without any issues.
After that, the event to load the DetailTable is called:
I get an exception - + ex {"Invalid attempt to call FieldCount when reader is closed."}
I am not sure what I'm doing wrong, because if I don't set hierarchyModeLoad to Client, the exact same code runs without any issues, and I can expand/collapse the rows.
I would appreciate any help.
I have a hierarchy grid with one nested level.
I'm having some issues with HierarchyLoadMode setting set to Client on my grid.
I load my grid on during Page_Load event, and it is loaded without any issues.
After that, the event to load the DetailTable is called:
protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e) { GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem; string paramID = dataItem.GetDataKeyValue("Param_Id").ToString(); string sConnectionString = "My Connection String"; SQLDataSource1.SelectParameters["ModelIdParam"].DefaultValue = paramID ; SQLDataSource1.ConnectionString = sConnectionString; e.DetailTableView.DataBind(); } I am not sure what I'm doing wrong, because if I don't set hierarchyModeLoad to Client, the exact same code runs without any issues, and I can expand/collapse the rows.
I would appreciate any help.