How to add CommandBarSeparator in a RadCommandBar with orientation = horizontal ?

1 Answer 58 Views
CommandBar
Alessandro
Top achievements
Rank 2
Iron
Iron
Iron
Alessandro asked on 07 Nov 2023, 11:00 AM

Hi all,

i tried to add a CommandBarSeparator into a CommandBarStripElement (of a RadCommandBar) .

The RadCommandBar has dock = Left...so , i would like to have a separator like an horizontal line

But..when i add CommandBarSeparator (at runtime) the commandBar shows a separator like a vertical line

I have tried to set commandBarSeparator.orientation to horizontal , but has no effects.

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 07 Nov 2023, 01:34 PM

Hello, Alessandro,

If you want to achieve horizontal CommandBarSeparator you can use the following code snippet:

commandBarSeparator1.StretchHorizontally = true;
commandBarSeparator1.MaxSize = new Size(0, 2);

Should you have any other questions do not hesitate to ask.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
CommandBar
Asked by
Alessandro
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or