With an UltraExplorerBar control, I'm trying to add a checkbox on the left side of each group header (see attached mockup). Is there a way to achieve this?
Hello Guy,
Thank you for contacting Infragistics. As it turns out, it's rather simple to use a CreationFilter to add the checkboxes. I've attached a sample project that shows you how to do so. I've also included comments in the code indicating where you could extend the CreationFilter to add more functionality.
Very interesting. What if Group 1 and Group 2 are mutually exclusive (only 1 can be checked at any single time) while the last one can be freely checked at any time?
I want to automatically uncheck any group(s) part of the set of mutually exclusive items (I stock a value in the Tag to indicate it).
I am handling the ElementClick on the form and successfully found the group(s) that needed to be unchecked but how can I access the checkbox to unselect it?
or simply say: where are the children of the group collection of controls hidden?
Hello,
Once you have the UIElement that represents the group header, you can call GetDescendant(typeof(CheckBoxUIElement)) and cast the result to a CheckBoxUIElement.
Please let me know if you have any other questions about this.
Hi
Everything is working great so far.
One more thing I need to acheive is to have some of the checkbox with a different visual cue. Maybe replace the square with a round or a color of the checkbox or the font of the caption or ...
How can I acheive this?
If you want a round "chexkbox", then you would use an OptionButtonUIElement instead of a CheckBoxUIElement. To change the font of the caption, you wouldn't even have to modify the creation filter. Just change the ExplorerBarGroup.Settings.AppearancesLarge.HeaderAppearance.FontData property.
Hello Dave, I have used the code provided by you for creating checkbox, after that I want the list of all the groups I have selected. I have search button and on clicking that I need to populate the details related to the selected groups. I'm stuck at getting the list of selected groups. Could you please help me in this.
Thank you for your response.
Yes, that is still the case. I would recommend posting a product idea at http://ideas.infragistics.com so you and other users can vote on the ideas that get posted.
Is it possible to add an animated GIF to the group header?
I have read in a post from 2009 that the UltraPictureBox does not support it. Is this still the case?
forget it, I think I found something!
OptionButtonUIElement would be excellent except that I cannot have its CheckState toggled Checked/Unchecked. Do you have a sample somewhere?