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

Re-order strip item in design view

3 Answers 101 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Yip Yew Kwong
Top achievements
Rank 1
Yip Yew Kwong asked on 19 Jan 2012, 11:06 AM
How to re-order the stripitems in desgin view? Thanks.

3 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 24 Jan 2012, 09:42 AM
Hi Yip,

Thank you for your question.

You can reorder them by editing the Strips collection of the current CommandBarRowElement. The attached screenshot demonstrates how. Please note that this approach is only valid at design time. At run time the strips are aligned according to the value of their DesiredLocation property.

I hope you find this useful. Feel free to ask if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

0
Yip Yew Kwong
Top achievements
Rank 1
answered on 26 Jan 2012, 03:23 AM
Thanks for the response. Is there any quick way to move strip from one row to another row at design time? 
0
Ivan Todorov
Telerik team
answered on 27 Jan 2012, 02:19 PM
Hi Yip,

Currently, there is no design time functionality which will allow you to change the row of a strip. You can do this by modifying the Designer.cs file manually.

First, find the CommandBarRowElement to which the strip is added:
this.commandBarRowElement1.Strips.AddRange(new Telerik.WinControls.UI.CommandBarStripElement[] {
            this.commandBarStripElement1});

Cut the strip element from the array (if the array becomes empty, remove the entire line). Then find the target row and add the cut strip element to it:
this.commandBarRowElement2.Strips.AddRange(new Telerik.WinControls.UI.CommandBarStripElement[] {
            this.commandBarStripElement1});

Save the Designer.cs file and reopen the design time of the form.

This scenario seems very reasonable, so I have logged it to PITS as a feature request. You can subscribe to it and vote for it. As it gets more votes, its priority will increase. Here is the link to the PITS item.

Your Telerik points have been updated.

Should you have any further questions, do not hesitate to contact us.

Greetings,
Ivan Todorov
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
CommandBar
Asked by
Yip Yew Kwong
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Yip Yew Kwong
Top achievements
Rank 1
Share this question
or