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

calling server side code from OnClientDragEnd event

1 Answer 100 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Shadi
Top achievements
Rank 1
Shadi asked on 02 May 2008, 05:40 PM
Say I have a 5 RadDocks and 2 zones. When a RadDock A is dragged from zone 1 to zone 2 I want to execute some server side code based on the information contained in the RadDock that was dragged.

For example, when RadDock A is dragged to Zone 2 I want to execute some C# code to query a database and display a list of products that are associated with RadDock A and have it all be asynchronous (no post back sent to the client).

Is this possible?

1 Answer, 1 is accepted

Sort by
0
Dimcho
Telerik team
answered on 07 May 2008, 03:17 PM
Hi Gayatri,

We have already replied your support ticket on the same subject. For convenience I am pasting the reply below:


RadDock has a server-side event DockPositionChanged which occurs when user changes the position of a RadDock control and postbacks are enabled. If your scenario doesn't allow any postback while the docks are moving, you can use an UpdatePanel which contains the RadDockZones. Please find the attached file. For your convenience, I have made a sample which gives a general idea how you can accomplish such kind of scenario. You can feel free to modify it so that it serves your needs.



All the best,
Dimcho
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Shadi
Top achievements
Rank 1
Answers by
Dimcho
Telerik team
Share this question
or