I can't seem to find a way to get the panel to only have a bottom border. It's probably pretty obvious but everything I'm trying isn't working.
So far I've gone into the smart tag for the panel control and messed around with the 'width' property of the various borders under the layout and box area's of the properties. I've done this with both the UI.RadPanelElement and BorderPrimitive areas. I'm setting the width on the side I don't want to show to 0 and that's not working. I've also tried -1 as well as changing the BorderThickness to no avail.
Appreciate any help with this!
5 Answers, 1 is accepted
In order to control each border, you first need to set the box style of the border. You can then change the border thickness for each
Have a look at this link which explains the border primitive that will explain all this in detail.
Hope that helps
Thanks buddy, that did the trick! I just needed to set the BoxStyle = FourBorders. Once again, you're the man!
If you want to have only the bottom border in RadTextBox you should set the BorderBoxStyle.FourBorders and manage the width of each border in order to achieve your custom requirement:
this.radTextBox1.TextBoxElement.Border.BoxStyle = BorderBoxStyle.FourBorders; this.radTextBox1.TextBoxElement.Border.LeftWidth = 0; this.radTextBox1.TextBoxElement.Border.RightWidth = 0; this.radTextBox1.TextBoxElement.Border.TopWidth = 0;
Do not hesitate to contact me if you have other questions.
Our thoughts here at Progress are with those affected by the outbreak.