Padding not working

2 posts, 1 answers
  1. L
    L avatar
    295 posts
    Member since:
    Apr 2008

    Posted 09 Aug Link to this post

    hi

    i have this xml code for the panelbar and the padding left seems not working. How should i get it working? Thanks a lot.

     

    <?xml version="1.0" encoding="utf-8" ?>
    <PanelBar>

    <Item Text="Course" Font-Size="1.1em"  ForeColor="#00a7dd">
          <Item Text="Lists" Font-Size="0.9em" style="padding-left:20px" ForeColor="#00a7dd" />   
          <Item Text="Categories" Font-Size="0.9em" style="padding-left:20px" ForeColor="#00a7dd"/>
    </Item>

     

    </PanelBar>

  2. Answer
    Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    278 posts

    Posted 11 Aug Link to this post

    Hello,

    When using an XML to bind and load content in RadPanelBar, the style property cannot be mapped. You will have to apply custom CSS rules to the Items instead:
    .RadPanelBar .rpItem .rpGroup .rpItem:first-child .rpLink {
        padding-left:20px
    }
    .RadPanelBar .rpItem .rpGroup .rpItem:nth-child(2) .rpLink {
        padding-left:20px
    }

    Regards,
    Veselin Tsvetanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top