Set Drag Handle Server-side (Dynamically Created Docks)

2 posts, 0 answers
  1. Zeeshan Ahmed Khan
    Zeeshan Ahmed Khan avatar
    11 posts
    Member since:
    Jul 2009

    Posted 04 Aug 2009 Link to this post


    The Question i want to ask is very simple..How can i create Handle of dynamically created in below example we are using javascript to create handle of docks..similarly i want to create handle on server if i place Image in docks from Database then that image should be the handler of that dock..


    Zeeshan Ahmed Khan

  2. Pero
    Pero avatar
    1156 posts

    Posted 06 Aug 2009 Link to this post


    Similarly as in the example when custom handle is set to a static RadDock, we attach a JavaScript event handler method to the OnClientInitialize client-side event where we set the handle of the RadDock to the desired HTML element. The Image is added to the dock's content twice: once when the dock is created for the first time and second time when the dock is recreated in the Page_Init.
    For your convenience I modified one of our online demos for dynamically created docks, where I set the handle to an image placed inside the RadDock. You can find it attached to thread. 

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top