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

radtreeview and contextmenu

2 Answers 28 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gabriele
Top achievements
Rank 1
Gabriele asked on 30 Apr 2012, 05:27 PM
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 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 02 May 2012, 07:23 AM
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.
0
Gabriele
Top achievements
Rank 1
answered on 08 May 2012, 09:30 AM
Thank you so much Bozhidar!! It was so easy..
bye
Tags
TreeView
Asked by
Gabriele
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Gabriele
Top achievements
Rank 1
Share this question
or