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

Example Ajax ContentMenu Item

3 Answers 34 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 09 Jul 2008, 11:36 PM
I need to fine grain some ajaxing for RadTree Context menus.

My example is a master page and and ajax proxy, when I ajax the tree with a panel no problem but I have context menus that not all operations need to update the panel but rather the tree itself.

Now the menui items are visible in the in the ajax proxy but do not work when I select them they just post back.

I'm using the 

RadTreeView1_ContextMenuItemClick event to perform the operations on the server.

Is it possible to get the content menu items to Ajax?

Cheers

Matt

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 11 Jul 2008, 03:34 PM
Hello Matt,

Please make sure that the menu is configured to update both the Panel and the TreeView.

So, you need to have one pair 'Menu updates TreeView' and one 'Menu updates Panel' in the RadAjaxManagerProxy.

Best wishes,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Matt
Top achievements
Rank 2
answered on 11 Jul 2008, 11:02 PM
I tried that no cigar.

Nothing fires at all

if I do it a TreeView Level ajaxing works but this is not what I'm after


0
Simon
Telerik team
answered on 14 Jul 2008, 03:30 PM
Hello Matt,

Another thing you could try is to use RadAjaxManager to perform AJAX requests manually upon clicking on a Menu Item. In this case, RadAjaxManager should be configured, so that it updates the TreeView.

For example, upon clicking on the 'Remove Node' Menu Item, an AJAX callback is made to the server, there the Node is found by its value (provided by the RadAjaxManager) and removed. Finally, only the TreeView will be updated.

Please read more about the ajaxRequest function and getting the RadAjaxManager client-side object inside the content page.

Greetings,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Matt
Top achievements
Rank 2
Answers by
Simon
Telerik team
Matt
Top achievements
Rank 2
Share this question
or