dynamically setting heights of raddockZones

2 posts, 0 answers
  1. saygin
    saygin avatar
    5 posts
    Member since:
    Aug 2012

    Posted 28 Mar 2008 Link to this post

    Hi,
    I have two raddockZones, say zoneLeft and zoneRight, in different tables on a page.
    ZoneA top point is 300px below the ZoneB top point, at all times.
    These zones are filled with dynamically created docks, and their height grows, as they have more docks.

    I want these zones' bottom points be on the same line, at all times. In other words, if zoneLeft grows up to 500px, zoneRight should grow to 800px. (Because zoneLeft is 300px below)

    I thouht of css expression, likely to work for me. Unfortunately no browser,but IE supports it. Is there any other way to achieve such a situation ?

    Thanks.
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 31 Mar 2008 Link to this post

    Hello,

    To make both zones - zoneLeft and zoneRight have their bottom points on the same line I could suggest one of the following options:
    1. Set the height property of the zones to the desired values so that when their content increases scrollbars will appear and the zones will not get resized. You can take a look at the Zone Orientation online example and the corresponding help article for reference.
    2. Try to calculate the height of the dock zones client-side at the Application load event and at the OnClientDragEnd event and set the proper height to the dock zones. For your convenience I have attached a  sample page which gives a general idea how to achieve such a scenario.

    If you need further assistance, do contact us again.

    Best regards,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top