radtreeview and contextmenu

3 posts, 0 answers
  1. Gabriele
    Gabriele avatar
    11 posts
    Member since:
    Feb 2012

    Posted 30 Apr 2012 Link to this post

    Hi all.
    I have a radtreeview filled from a database in code behind.and a radtreeviewcontextmenu working correctly on the radtreeview.
    I've implemented some classical node operations  from client side (add,rename,delete,ecc.) .
    Then I access these client changes on server side by ClientChanges  property.
    So far so good.

    Here's the problem I can't solve..

    Client side changes are available on the server side after postback, but I don't want to call a postback with a 
    classic button onclick event..I would like to call a postback after every client operation made by contextmenu !
    Is it possibile ?
    I have everything to get it. All the client functions are ok and the clientchanges routine on code behind calling the database save function.
    The only missing link is how to call/invoke a postback from client side to perform the clientchanges routine..
    May you help me ? 
    Thanks in advance guys
    Gabriele


  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 02 May 2012 Link to this post

    Hello Gabriele,

    RadTreeView exposes an event that does exactly that - OnContextMenuItemClick. You can read more about it in the following help article:
    http://www.telerik.com/help/aspnet-ajax/treeview-server-context-menu-item-click. 
     
    Kind regards,
    Bozhidar
    the Telerik team
    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gabriele
    Gabriele avatar
    11 posts
    Member since:
    Feb 2012

    Posted 08 May 2012 Link to this post

    Thank you so much Bozhidar!! It was so easy..
    bye
Back to Top