5 Answers, 1 is accepted
Yes, you can merge the command bars although there is no built-n functionality for this. I am not sure if you want to merge the strips or the items but using the proper collections this should not be a problem. For example if you want to merge the items of two or more CommandBarStripElements, you can get the items from the Items collection:
If you want to merge the strips of two or more RadCommandBars you can get all strips by traversing all rows and extracting them from their Strips collection:
I hope you find this useful. If you have any further questions, do not hesitate to ask.
All the best,
the Telerik team
Thanks for the reply. I'm trying to merge a commandbar from a child form with the commandbar on a mdi parent form when the child form loads. can you provide example?
You can find an example in the attached project.
I hope you find it useful. Please let me know if you need any further help.
the Telerik team
I was wondering if in the meanwhile there are plans to provide built-in functionality to support merging for commandbar items. Often commandbar items are linked to menu items, and for menu items the merging is really first class functionality. Perhaps even a way to link a commandbar item to a menu item would be nice, because if e.g. a File / Save is disabled, you would also want the related save commandbar icon would be disabled.
Currently, we don't have plans for introducing built-in functionality for merging RadCommandBar's items. However, if we have similar requests from other customers, we will consider improving RadCommandBar in future.
Meanwhile, feel free to use the suggested approach in the previous reply.
Should you have further questions please let me know.
Dess | Tech Support Engineer, Sr.
Our thoughts here at Progress are with those affected by the outbreak.