calling server side code from OnClientDragEnd event

2 posts, 0 answers
  1. Shadi
    Shadi avatar
    13 posts
    Member since:
    Jun 2007

    Posted 02 May 2008 Link to this post

    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?
  2. Dimcho
    Admin
    Dimcho avatar
    45 posts

    Posted 07 May 2008 Link to this post

    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
Back to Top