Hi all,
I've a very specific layout requirement for an option set where for some of the options it is necessary to also show additional checkboxes. At the moment I've solved it by using Microsoft's radio button as depicted in picture below.
I tried to achieve the same with the UltraOptionSet but didn't find a way to add an extra control to one of the choices. Is there a way to do this, maybe with another Infragistics control?
I've attached the files for this form which probably gives a better picture than this screenshot.
Thanks, Wolfgang
Hi qbupoew,
Could you please clarify what your final goal is?
And if you could please attach again a screenshot, which you can alternatively add to a .zip file, so I can get a better idea on what exactly you want to achieve.
Hi Vasil,
thanks for your instant reply. Sorry, I've added the picture to my post but it disappeared when I published it. I added it as a zip-file as you suggested, hope that makes it clearer.
Regards, Wolfgang
Hi Wolfgang,
I am very glad that my sample helped you.
Thank you for your feedback and for sharing with us the modified version of the sample.
We believe that the other community members could benefit from such threads.
thanks for your effort and your sample, it was coming very close to my requirements :-) The two checkboxes should always be visible but only be enabled if the associated option set is selected. Also the checkboxes should be located in an own column to the right of the option sets.
These were no real big issues, I modified your sample so that it fits perfect to the requirements. I've attached it, maybe you or other forum users are interested in.
Thanks again,Wolfgang
I created a sample for you using the UltraGridBagLayoutPanel. I Added 4 UltraOptionSet controls and 2 UltraCheckEditors under the first and third OptionSets. It looks like the screenshot you sent.
Could you please review the sample and see if it meets your requirements.
thanks for sharing your ideas, I really appreciate that!
What I want to achieve with the option set is to be able to select only one option at a time. The Microsoft RadioButton control does this in that way that you add several RadioButton controls to a container control such as a Panel or GroupBox which groups them logically together thus only one option at a time may be selected.
I think, I understand your suggestions but this means that nodes with an UltraOptionSet will always have just one option and I have to take care myself that always just one option is selected by processing the appropriate event that one of the UltraOptionSet has been selected, deselected all others. Since I don't want that the nodes and checkboxes are folded in the UltraTree I have to take care on that as well.
Before writing my initial post I was thinking of using an UltraGridBagLayoutPanel, place several UltraOptionSet and UltraCheckEditor controls onto it, handle the events from the UltraOptionSet controls to make them exclusive.
If you want to use only one UltraOptionSet with items in it for different options, so as to be able to select only one option at a time, it is not possible to add a checkbox or other control in the UltraOptionSet. What you can do is to use an UltraTree and add UltraOptionSet to different nodes. And for some of them you can add child nodes containing checkboxes.
Another solution could be to use the UltraTree again and add UltraCheckEditors in both parent and child nodes.
Please feel free to let me know if I misunderstood you or if you have any other questions.