resize raddoczone dynamically

4 posts, 0 answers
  1. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 16 Mar 2011 Link to this post

    Hello,

    I have raddocs with different height and size. Is it possible to resize the raddoczone according to the size of raddoc ?

    Also is it possible to store them database to maintain its state till next login ?

    Prayag

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 17 Mar 2011 Link to this post

    Hello Prayag,

    With the current implementation of the RadDock and RadDockZone controls, it is only possible to resize the Height of the docking zone according to the height of the child docks. To do this you simply leave the Height property of the zone not set.
    It is not possible to resize the Zone's width according to the dock's width.

    Greetings,
    Pero
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 17 Mar 2011 Link to this post

    Thanks for the reply.

    More specifically it is like, can I add/ remove/ relocate/ resize radDocZone dynamically on postback then it will be easy to change the layouts as require ?

    Also can I save these settings of dynamically created radDocLocations and dynamically created radDocs in to the database ?

    Prayag

  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 21 Mar 2011 Link to this post

    Hello Prayag,

    If you know the actual width of the zone, then yes you could set the Width property on the server, and it will be reflected on the client. The zones can be programmatically created and added on the server. If you want to remove a certain zone on a postback, you should simply not recreate it when the post back occur and the zone will be removed.
    Relocation of the zone would only make sense if the docks residing in the zone are not draggable, and cannot be moved to another zone. I would recommend moving the docks from one zone to another. Basically, the docks should always be added to the RadDockLayout, and moved to the desired zone, using the RadDock.Dock server side method to place a dock in the zone, or RadDock.Undock to remove a dock from a zone.

    Examples of saving the state of dynamically created docks into DB, can be found in our Code Library:

    Kind regards,
    Pero
    the Telerik team
Back to Top