Drag and drop of items in command bar

6 posts, 0 answers
  1. Stephen
    Stephen avatar
    2 posts
    Member since:
    Sep 2010

    Posted 29 Nov 2010 Link to this post

    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
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 30 Nov 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 01 Dec 2010 Link to this post

    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
  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 02 Dec 2010 Link to this post

    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.
  6. Stephen
    Stephen avatar
    2 posts
    Member since:
    Sep 2010

    Posted 02 Dec 2010 Link to this post

    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.
  7. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 07 Dec 2010 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready