Create Dynamic Raddock layout, zone and dock.

4 posts, 0 answers
  1. Ajish Rehuman
    Ajish Rehuman avatar
    2 posts
    Member since:
    Jul 2009

    Posted 27 Jul 2009 Link to this post

    Hi,

    I am trying to create some docks dynamically in my application. Not only the docks, the raddockzone and raddockLayout is also created dynamically. I dont have any issues in creating this dynamically. But if I drag a dock to any other zone, all the dynamically created docks are lost during postback. Here i am using two layouts, one which is created dynamically and other one which ia already there and holds some static zones in them. The problem occurs when I try to drag and drop on dock in either way.

    Can you give me a solution for this immediately. I am working on this for a long time now. I cannot wate anymore time. Any help is appreciated.

    Thanks,

    Ajish.
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 30 Jul 2009 Link to this post

    Hello Ajish,

    This behavior is expected because you are creating the RadDockLayout dynamically. The RadDockLayout manages the state of the zones and the docks on the page, and if it is created dynamically its state should also be saved and used to recreate the layout on every post back (this extra effort is not needed when you can place the layout statically on the page). That is why we recommend the RadDockLayout to be static and create zones/docks dynamically (if you need them to be created dynamically). Please note that only one instance of the layout is needed to manage the states of the zones and docks.   


    Regards,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Zeeshan Ahmed Khan
    Zeeshan Ahmed Khan avatar
    11 posts
    Member since:
    Jul 2009

    Posted 20 Aug 2009 Link to this post

    Correct me i understood u wrong...Do u mean we can't create More than 1 instance of RadDockLyaout to handle Dynamically Created Docks...(THIS IS ONLY VALID FOR DYNAMICALLY CREATED DOCKS...RIGHT?)



    Regards;
    Zeeshan Ahmed Khan
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 25 Aug 2009 Link to this post

    Hello Zeeshan Ahmed Khan,

    No I don't mean that you cannot use more than one instance of RadDockLayout to manage the state of certain dynamically created RadDocks. All I am saying is that the RadDockLayout should be defined in the .aspx (not in the code behind) and that only one RadDockLayout is enough to manage the docks' states. It is up to you to decide how many instances you will use, and which instance will manage which docks.


    Regards,
    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.
Back to Top