Hi,
We’re using RibbonBars heavily in our app – around 100 forms with them. The one thing that drives us mad is the ComboBox control – it’s just an array of strings. Are there any plans to make it function like a regular ComboBox – i.e. items that are classes with a ToString() method? This would allow us to store more data against an item, especially where the text is duplicated.
We have tight integration with Crystal Reports and Stimulsoft and show a dropdown in the Ribbon of documents/reports that can be shown – there can be a Crystal Report with the same name as a Stimulsoft (we don’t show the extension obviously).
I haven’t checked the source code, but I’m sure it is a ComboBox and you’re just taking an array and populating the items etc.
How about a monthly challenge for your clients to develop things like this?
I’ll stop waffling now 🙂
Neil.
Thanks Alaa, I had already thought of doing that, it’s just a little bit of a pain embedding controls. I’ll have a look at hard / easy it would be to incorporate it natively and if I can do it, I’ll submit a pull request.
Hi Neil,
The RibbonBarItemComboBox only supports a list of strings, however, you can use any regular ComboBox with the RibbonBarItemControl!
It’s relatively simple, just drag and drop a ComboBox into your designer window, then select the RibbonBarItemControl and choose the dropped ComboBox as its control from the Properties tab in Visual Studio!
I have attached a sample.
Also, if you want, you can change the extension to support any object and submit a pull request, all the extensions are open-source!
HTH,
Alaa
Please login first to submit.