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

AutoSize Width 100%

1 Answer 111 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
eglvz
Top achievements
Rank 1
eglvz asked on 12 Jul 2012, 09:28 AM
Hi

I need put the size of the command bar to 100%.

Is there any property to do this?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Jul 2012, 12:04 PM
Hello,

Thank you for writing.

I assume that you want to extend a strip width to cover the whole command bar area. If so, this can be done by setting the StretchHorizontally property of the last strip element in a CommandBarRowElement to true:
radCommandBar1.Rows[0].Strips[radCommandBar1.Rows[0].Strips.Count-1].StretchHorizontally = true;

I hope this helps.

Greetings, 
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
CommandBar
Asked by
eglvz
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or