Re-order strip item in design view

4 posts, 0 answers
  1. Yip Yew Kwong
    Yip Yew Kwong avatar
    14 posts
    Member since:
    May 2010

    Posted 19 Jan 2012 Link to this post

    How to re-order the stripitems in desgin view? Thanks.
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 24 Jan 2012 Link to this post

    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).

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Yip Yew Kwong
    Yip Yew Kwong avatar
    14 posts
    Member since:
    May 2010

    Posted 25 Jan 2012 Link to this post

    Thanks for the response. Is there any quick way to move strip from one row to another row at design time? 
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 27 Jan 2012 Link to this post

    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).

Back to Top