All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
How to refresh child record of the hierarchial grid without making the child to be closed. Thanks.
<
DetailTables
>
telerik:GridTableView
Name
=
"Detail2"
CommandItemDisplay
"Top"
. . . . . . . . . . . . . . . . . . . . .
</
int
parentitemIndex = -1;
protected
void
RadGrid1_ItemCommand(
object
source, GridCommandEventArgs e)
{
if
((e.CommandName ==
"RebindGrid"
) && (e.Item.OwnerTableView.Name ==
))
GridDataItem item = (GridDataItem)e.Item.OwnerTableView.ParentItem;
parentitemIndex = item.ItemIndex;
}
RadGrid1_PreRender(
sender, EventArgs e)
(parentitemIndex > -1)
GridDataItem item = (GridDataItem)RadGrid1.Items[parentitemIndex];
item.Expanded =
true
;