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

RadDockLayout - Event not fired

3 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
siva
Top achievements
Rank 1
siva asked on 30 Mar 2011, 11:06 AM
Hi,
I have created a user control in my website to create Raddocks dynamicaly. This user control is used in one of the child page (testpage.aspx) which is opened through 'window.top.radopen' javascript command to perform drag and drop. 

The problem is, when the page (testpage.aspx) is loaded first, the docks are created fine. But while performing drag and drop neither the page init (user-control's) nor the DockLayout's events (in user-control screen) are not getting fired.

I have to save the order at which the docks (dynamically created) are sorted. I worked out the code to save the dock's sorted order after drag and drop. The code works fine in child page. but not working in usercontrol....I think the events are not triggering due to some postback problem. My website is not AJAX enabled.

I have googled a lot..but couldn't find a solution.

any idea ... ?

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 04 Apr 2011, 11:00 AM
Hi Siva,

Are you loading the user control with the docks dynamically at Page.Load? The RadDockLayout.LoadDockLayout event is fired before the ViewState is loaded, and after Page.InitComplete  is fired. Please make sure that the user control is either loaded declaratively (in the aspx markup), or loaded
at Page.Init, to be sure that the DockLayout control is added to the page, before its LoadDockLayout event is usually fired.

In case you still cannot resolve your issue, please send us a sample project that demonstrates the problem and we will do our best to help you. Note that you must open a support ticket to be able to attach files different than pictures.

Regards,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sachin
Top achievements
Rank 1
answered on 08 Jun 2011, 08:36 PM
Hi,

How will you fire LoadDockLayout event of DockLayout within  a usercontrol? I am dragging this user control onto the page through sitefinity back end. Everything else is working except this LoadDockLayout event.
0
Pero
Telerik team
answered on 10 Jun 2011, 10:55 AM
Hello Sachin,

If the user control is loaded dynamically at any stage after Page.InitComplete, the RadDockLayout.LoadDockLayout event will not be fired. I suppose this is the case when loading a user control in a Sitefinity page. Because there is no way to fire the event, I would suggest using the RadDockLayout.SetRegisteredDockParents to position the docks at their correct indices in the respective zones. This method should be run immediately after all the docks have been created from state and added to the docking layout.

Greetings,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Dock
Asked by
siva
Top achievements
Rank 1
Answers by
Pero
Telerik team
Sachin
Top achievements
Rank 1
Share this question
or