We have a treeview and a grid on a page. I have the ajax manager set up as follows:
This does work, but when operations are done on the treeview (RepositoryTree), the grid (PortfolioGrid) is always updated too, when in actuality, there are only certain operations that require the grid to be updated (for example, drag/dropping an item from the treeview to the grid). So on updates to the treeview, I always want the treeview updated, but only sometimes do I want the grid updated.
But, I've been unable to figure out how to manually trigger the ajax call to update the grid upon a drop, if I remove the last "updatedControl" line from the declaration above like this:
I've tried adding ajaxManager.ajaxRequestWithTarget or ajaxManager.ajaxRequest
calls to specifically update the grid, but they do nothing, perhaps because other ajax activity is already going on (the primary RepositoryTree work is happening via Ajax)? Perhaps I haven't found the right place to add the api calls for ajax on the Grid? In this example, we do have a serverside method to process the drop on the grid in response to the OnNodeDrop event. Seems like I would have to make Grid ajax refresh request after this event returns to the client? How would I do that?
Thanks,
Sheryl
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RepositoryTree"/> |
<telerik:AjaxUpdatedControl ControlID="PortfolioGrid"/> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="PortfolioGrid"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="PortfolioGrid" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="RepositoryTree"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RepositoryTree" /> |
<telerik:AjaxUpdatedControl ControlID="PortfolioGrid" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
This does work, but when operations are done on the treeview (RepositoryTree), the grid (PortfolioGrid) is always updated too, when in actuality, there are only certain operations that require the grid to be updated (for example, drag/dropping an item from the treeview to the grid). So on updates to the treeview, I always want the treeview updated, but only sometimes do I want the grid updated.
But, I've been unable to figure out how to manually trigger the ajax call to update the grid upon a drop, if I remove the last "updatedControl" line from the declaration above like this:
<telerik:AjaxSetting AjaxControlID="RepositoryTree"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RepositoryTree" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
I've tried adding ajaxManager.ajaxRequestWithTarget or ajaxManager.ajaxRequest
calls to specifically update the grid, but they do nothing, perhaps because other ajax activity is already going on (the primary RepositoryTree work is happening via Ajax)? Perhaps I haven't found the right place to add the api calls for ajax on the Grid? In this example, we do have a serverside method to process the drop on the grid in response to the OnNodeDrop event. Seems like I would have to make Grid ajax refresh request after this event returns to the client? How would I do that?
Thanks,
Sheryl