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

Set Drag Handle Server-side (Dynamically Created Docks)

1 Answer 40 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Zeeshan Ahmed Khan
Top achievements
Rank 1
Zeeshan Ahmed Khan asked on 04 Aug 2009, 11:47 AM
Hi;

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



Regards;

Zeeshan Ahmed Khan


1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 06 Aug 2009, 02:35 PM
Hello,

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. 


Greetings,
Pero
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.
Tags
Dock
Asked by
Zeeshan Ahmed Khan
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or