This is a migrated thread and some comments may be shown as answers.

Separator

2 Answers 96 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Niclas
Top achievements
Rank 1
Niclas asked on 14 Oct 2008, 12:46 PM
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 Answers, 1 is accepted

Sort by
0
-DJ-
Top achievements
Rank 1
answered on 14 Oct 2008, 01:38 PM
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-
0
Niclas
Top achievements
Rank 1
answered on 16 Oct 2008, 06:22 AM
Thanks.
Tags
PanelBar
Asked by
Niclas
Top achievements
Rank 1
Answers by
-DJ-
Top achievements
Rank 1
Niclas
Top achievements
Rank 1
Share this question
or