RadAjaxmanager with RadTreeView and RadTreeViewContextMenu

2 posts, 0 answers
  1. TaponiaSoftware
    TaponiaSoftware avatar
    11 posts
    Member since:
    Jul 2013

    Posted 05 Feb 2014 Link to this post


    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

  2. Viktor Tachev
    Viktor Tachev avatar
    1445 posts

    Posted 10 Feb 2014 Link to this post

    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.

    Viktor Tachev
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top