how can I have the child grid open in insert mode? I tried a number of different things but it keeps saying that it can't find my linq datasource control when I rebind at the detail level or the master level. I need to be able to expand a row with command button and have the child detail grid loaded in insert mode all in one click.
When the rebind is called here at any level it yields this from ajax postback.
69|error|500|Cannot find DataSourceControl with ID 'ldsVendorRatingQualifications'|
Thanks,
When the rebind is called here at any level it yields this from ajax postback.
69|error|500|Cannot find DataSourceControl with ID 'ldsVendorRatingQualifications'|
Thanks,
protected
void
gridRatings_ItemCommand(
object
sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if
(e.CommandName ==
"AddNewChildRating"
) {
GridDataItem parentRow = e.Item
as
GridDataItem;
GridTableView parentGridView = parentRow.GetClosestParentControlByType<GridTableView>();
RadGrid parentGrid = parentGridView.GetClosestParentControlByType<RadGrid>();
parentRow.Expanded =
true
;
//parentGridView.HierarchyDefaultExpanded = true;
//parentGridView.DetailTables[0].InsertItem();
parentGridView.DetailTables[0].IsItemInserted =
true
;
parentGridView.DetailTables[0].Rebind();
}
}