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

RadAjaxmanager with RadTreeView and RadTreeViewContextMenu

1 Answer 35 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
TaponiaSoftware
Top achievements
Rank 1
TaponiaSoftware asked on 05 Feb 2014, 08:31 AM
Hi,

If i add a RadTreeView to RadAjaxManager all Treeview-events are raising an Ajax Update.
Is it possible to detect if the Event Source was a RadTreeViewContextMenu?
Background: I want to update a RadGrid on NodeClick, but NOT on RadContextMenuItemClick (Not needed, because of external RadWindows are opening)
I canĀ“t use Javascript only because i need the Postback... (ContextMenuItemClick)

Thank you

Stefan

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 10 Feb 2014, 08:59 AM
Hi Stefan,

Thank you for contacting us.

In order to differentiate the requests from node click and context menu click you could use the ajaxRequest() function. Also you could add a handler for the OnAjaxRequest event of RadAjaxManager. In the handler you could update different controls depending on the event argument.

For your convenience I have prepared a sample project illustrating the approach. Give it a try and let me know if it is working for you.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
TaponiaSoftware
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or