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.
"<%= RadGrid1.Items.ChildItem.NestedTableViews.ClientID %>").expandItem(0);
"<%= RadGrid1.Items.ChildItem.NestedTableViews.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.