Problems with spacing docks within a zone

2 posts, 1 answers
  1. Mitul
    Mitul avatar
    6 posts
    Member since:
    Jun 2008

    Posted 25 Jun 2008 Link to this post

    Hello,

    So basically im creating a page that has 2 dockzones both with orientation set to hoirzontal. What I would like to do is leave around 20-25 pixels between each dock within the zone, and like it to remain like that alwys, i.e. when a new dock rom another zone is dragged on there, it should also remain 20-25 pixels away from the existing ones.

    I tried setting the Left properties of the docks to no avail, I also put a style tag and set margins but somehow this did not give me the desired reults either. Is there an easy way to do this, just a simple css hack. or am i missing something here?

    Thanks for your replies!

    Best,
    M
  2. Answer
    Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 26 Jun 2008 Link to this post

    You should add padding to RadDocks.You can change RadDock_Default class  in Skin css file(e.g. C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Skins\Default\Dock.Default.css)
    For example:
    .RadDock_Default {
    background:window none repeat scroll 0% 0%;
    color:windowtext;
    margin:0pt 5px 5px 0pt;
    text-align:left;
    }


    to

    .RadDock_Default {
    background:window none repeat scroll 0% 0%;
    color:windowtext;
    margin:0pt 5px 5px 0pt;
    padding: 5px 5px 5px 5px;
    text-align
    :left;
    }
Back to Top