Hi,
I am in process of coding a three level hierarchy grid with client side hierarchy mode.I need to get data from DB on button click for some filter criteria and bind results to grid.
I wish to call the NeedDataSource and DetailsTableDataBind [this is called after needdatasource event is fired] event on button click to avoid error in JS method when hierarchy mode is CLIENT which says index out of bound.
I am in process of coding a three level hierarchy grid with client side hierarchy mode.I need to get data from DB on button click for some filter criteria and bind results to grid.
I wish to call the NeedDataSource and DetailsTableDataBind [this is called after needdatasource event is fired] event on button click to avoid error in JS method when hierarchy mode is CLIENT which says index out of bound.
function
ExpandFirstDetailTableFirstItem()
{
$find(
"<%= RadGrid1.Items[0].ChildItem.NestedTableViews[0].ClientID %>").expandItem(0);
}
function CollapseFirstDetailTableFirstItem()
{
$find(
"<%= RadGrid1.Items[0].ChildItem.NestedTableViews[0].ClientID %>").collapseItem(0);
}
I am looking following example on button click and and not on page load so tha NeedDatasource event is called after button click event is fired.
regards,
Parimal