RadDockLayout - Event not fired

4 posts, 0 answers
  1. siva
    siva avatar
    2 posts
    Member since:
    Mar 2011

    Posted 30 Mar 2011 Link to this post

    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 ... ?
  2. Pero
    Pero avatar
    1156 posts

    Posted 04 Apr 2011 Link to this post

    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.

    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
  3. Sachin
    Sachin avatar
    4 posts
    Member since:
    Nov 2010

    Posted 08 Jun 2011 Link to this post


    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.
  4. Pero
    Pero avatar
    1156 posts

    Posted 10 Jun 2011 Link to this post

    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.

    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.

Back to Top