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

Drag and drop of items in command bar

5 Answers 231 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 29 Nov 2010, 04:47 PM
I am converting a rad toolstrip to the new command bar, but I don't see the AllowDragging property which used to allow me to re-arrange the order of items in the toolstrip.  How do I do this now?
Thanks

5 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 30 Nov 2010, 12:37 PM
Hello Stephen,

Are you referring to the actual CommandBarButtonItems and the like? If so then I beleive you should use:
Me.CommandBarButton1.AllowDrag = True

For reference, this property is not visible in the designer.
Hope this helps
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 01 Dec 2010, 10:03 PM
Hello Stephen,

Just wondered if you needed any further help with this. If so just let me know. If the above helped, please mark as answer.
Many thanks
Richard
0
Peter
Telerik team
answered on 02 Dec 2010, 03:23 PM
Hello Stephen,

Thank you for writing.

RadCommandBar supports rearranging at CommandBarStripElement level in runtime. You can enable or disable dragging at CommandBarStripElement level by setting the EnableDragging property, for example:

commandBarStripElement1.EnableDragging = true;

RadCommandBar does not support rearranging items in runtime - this is possible only via CommandBar Customize Dialog, which will be available in the upcoming SP release.

Kind regards,
Peter
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
Stephen
Top achievements
Rank 1
answered on 02 Dec 2010, 04:23 PM
Thanks Richard and Peter.  What I wanted to do was re-arrange the order of the buttons (elements) within the strip, so I guess based on Peter's response I am out of luck until the new SP is released.  (or build my own of course).

Thanks for the help.
0
Peter
Telerik team
answered on 07 Dec 2010, 01:52 PM
Hi Stephen,

Thank you for writing back.

I want to clarify that the Customize Dialog will rearrange items only in runtime and this rearrangement will not be serialized.

Do not hesitate to contact us if you have other questions.

All the best,
Peter
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
Tags
CommandBar
Asked by
Stephen
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Peter
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or