RadtreeList cellspacing

6 posts, 0 answers
  1. Brian
    Brian avatar
    4 posts
    Member since:
    Jul 2012

    Posted 31 Aug 2012 Link to this post

    Is there a way to change the vertical spacing between cells? 
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2012 Link to this post

    Hi Brian,

    I suppose you want to remove the top and bottom padding of the cells in the RadTreeList. Try overriding the default CSS as follows.

    CSS:
    <style type="text/css">
        .RadTreeList .rtlHBorders .rtlR > td
        {
            padding-top:0px !important;
            padding-bottom:0px !important;
        }
    </style>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    4 posts
    Member since:
    Jul 2012

    Posted 04 Sep 2012 Link to this post

    that didn't change it, i tried on the page as well in my CSS file.

  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 07 Sep 2012 Link to this post

    Hi,

    I tried the code snippet below to remove the top and bottom paddings and it is working for me.
    div.RadTreeList .rtlHBorders .rtlR > td,
    div.RadTreeList .rtlHBorders .rtlA > td
            {
                padding-top: 0px;
                padding-bottom: 0px;
            }

    Give it a try and let me know if you still can not achieve the desired functionality.

    Regards,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Brian
    Brian avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Sep 2012 Link to this post

    How exactly do I implement this? right now I am simply pasting it into my css file. I also tried adding it on the page with the <style> tags

    neither is changing it. 
  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 13 Sep 2012 Link to this post

    Hi,

    Can you send us a live URL of your project, so we can inspect it locally and see why the provided code is not working for you?

    Regards,
    Pavlina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017