Separator

3 posts, 0 answers
  1. Niclas
    Niclas avatar
    9 posts
    Member since:
    Oct 2008

    Posted 14 Oct 2008 Link to this post

    How can control the look of a radpanelitem that is a separator?

    This is how i create the radpanelitem:

    Dim
    rpiSeparator As New RadPanelItem
    rpiSeparator.IsSeparator =
    True
    rpiSeparator.CssClass = "subMenuSeparator"
    rpiSeparator.Text = "<hr />"
    radPanel.items.add(rpiSeparator)

    And this is my css:
    .subMenuSeparator
    {
     padding-top:5px;
     padding-left:0px;
     padding-right:0px;
     color:#000000;
    }
       

    It does not seem to have any effect.

     

  2. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 14 Oct 2008 Link to this post

    Hi Niclas,

    It looks to me like the subMenuSeparator class is never applied to the element.

    You can still gain control over the separator by using the default rpSeparator class.

    All definitions from there should work as expected.

    If you still have problems with the look of the separator, exchange the <hr/> with a <br /> and just set the height of it.

    So, this should work:

    .rpSeparator
    {
     padding-top: 5px;
     padding-left:0;
     padding-right:0;
     background: #000;
    }

    Dim rpiSeparator As New RadPanelItem
    rpiSeparator.IsSeparator =
    True
    rpiSeparator.Text = "<br style='line-height: 2px; height: 2px' />"
    radPanel.items.add(rpiSeparator)


    Regards,
    -DJ-
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Niclas
    Niclas avatar
    9 posts
    Member since:
    Oct 2008

    Posted 16 Oct 2008 Link to this post

    Thanks.
Back to Top