This is a migrated thread and some comments may be shown as answers.

Treeview context menu - different update panels?

3 Answers 65 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 09 Nov 2009, 02:18 PM
I have a page that has a dropdown list and a 2 pane splitter.

When I change the dropdown list, the 2 pane splitter updates and the loading panel functions properly.

In the left pane of the splitter, I have a tree view. When I drag and drop treeview elements, the loading panel only overlays the left pane of the splitter - this is proper and correct.

I also have a context menu on the treeview. When I select various options (except for one - continue reading, please) the loading panel overlays the left pane of the splitter only - this is proper and correct.

However, one of the context menu's options causes a user control to be updated that is in the right pane.

How can I cause the right pane to be updated and the ajax loading panel to cover the ENTIRE splitter (or the 2 panes independently - doesn't matter)? I have tried several options and can't seem to come up with something that work.

I don't think I can do this via that AjaxManagerProxy, since the individual context menu items don't have an associated ID with them. Do I need to (can I even) do this on the client side?

Any help would be appreciated.

Greg

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 12 Nov 2009, 11:44 AM
Hello Greg,

Thank you for the detailed explanation.

What I can offer you is to show/hide the loading panel explicitly and position it appropriately on the page when you click the option from the context menu which loads the user control. Review the online demo and help topic referenced at the bottom of this message for further details:

http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/explicitshowhide/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/ajxcenterloadingpanel.html

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Greg
Top achievements
Rank 1
answered on 13 Nov 2009, 04:43 AM
The first link was partially helpful. However, since a context menu item has no ID, it won't be returned as the target, but the tree view itself.

How can I determine which context menu item was selected?
0
Sebastian
Telerik team
answered on 13 Nov 2009, 04:22 PM
Hello Greg,

You can detect the context menu item clicked by the user intercepting the OnItemClicking client event of the menu and then recognize it inside the OnRequestStart handler of the ajax manager. See the javascript code from the last couple of projects in this code library thread for more details.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Greg
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Greg
Top achievements
Rank 1
Share this question
or