Hi,
I have one data bound tree view.
On three view click i Need to refresh my Grid..
On Treenode click event handler. I called the RadGrid's Rebind Method and it call the RadGrid1_NeedDataSource method where i again reset the Datasource of the grid according to selection in the treeview. But my grid is not updating the datasource..
Here is some code..
Node click handler
DataSource is perfect but Not refreshing the grid.. But when manually refresh the grid from refresh button in grid. work awesome..
Please help me its very urgent..
Thanks.
I have one data bound tree view.
On three view click i Need to refresh my Grid..
On Treenode click event handler. I called the RadGrid's Rebind Method and it call the RadGrid1_NeedDataSource method where i again reset the Datasource of the grid according to selection in the treeview. But my grid is not updating the datasource..
Here is some code..
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { if (!String.IsNullOrEmpty(RadTreeViewContainers.SelectedValue)) RadGrid1.DataSource = WorkBoard.Client.Task.GetTaskByContainerId(RadTreeViewContainers.SelectedValue); else RadGrid1.DataSource = WorkBoard.Client.Task.GetTaskByContainerId(TaskFolders[0].Id); }Node click handler
protected void RadTreeViewContainers_NodeClick(object sender, RadTreeNodeEventArgs e) { RadGrid1.Rebind(); }DataSource is perfect but Not refreshing the grid.. But when manually refresh the grid from refresh button in grid. work awesome..
Please help me its very urgent..
Thanks.