I have treeview control onclick on the child node I wand to populate the radGrid and it has a sorting functiolity.
OnClick of Node this method is called.
public void PageSelectionChanged(long pageID) |
{ |
ViewState["PageID"] = pageID; |
radPageVersion.ReBind() |
} |
I have on onNeedDataSource set. In needDataSource event I am calling a private method which calls Stores Proc with node ID as parameter. The problem is Node click event (PageSelectionChanged) is excecuted after NeedDataSource and rebind does not rebineds the grid and that is causing Node and and grid gets out of sync.
If I enableVeiwState it works fine on node click but when I click on header to sort does not work the grid gets empty NeedDatasource does not fires.
How can I make it work where I should be able to update grid onclick of some other controls and make sorting work?
Thanks
Imtiaz