Hi There,
Am using UltrawinEditor.UltraOptionSet radio box in my win form, the form is a dynamic form which display the control accordingly
i need help to hide collection of UltraOptionset Value when i choose option 1 then ultrawinEditor.UltraOptionset should show value as A, B and if i choose option 2 then ultrawinEditor.UltraOptionset value as C,D,E and hide A,B
i have added this value in ultrawinEditor.UltraOptionset collection any idea how can hide in UI during run time.
Thank in advance.
Hello cyus,
A possible approach to achieve this might be by using two or three(depends on your scenario) different value lists and change them when an item is checked.
Please feel free to let me know if this does not suit your needs or if you need additional assistance.
Hello,
I am just checking about the progress of this thread. Please let me know If you need my further assistance on this.
how to hide 1 item in the collection valueitem list for ultra optionset? code pls?
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.
I just wanted to know if you were able to solve your issue based on these suggestions or you still need help? Just let me know.
Hello Boris,
Thanks for the code it works, i also like to know am using Ultra panel in my project and add few control inside panel, when checking some condition i want to hide the panel in the form and squeeze the space when enable then use the space is tat possible, becos i have done same with ASP: Server control.
OTHER CONTROL
____________ H
panel I
D
____________E and Merge the space
BOTTOM CONTROL
pls help
Regards
cyus
Pls can u give me some example codes?
You can use two panels within a container control to achieve this. Place the panel you want to hide inside the container control and set the .Dock property to top. Add you second panel into the container control and mark it's .Dock property to fill. Now when you set the .Visable property of the first panel to false the second panel will expand and occupy the space within the container control. If you reset the .Visable property to true, the panels will be returned to normal.
Use this in conjunction with the .Anchor property to ensure that control placed on the expanding panel resize with the expansion. The windows form panel is also very useful for providing padding so that child controls are displayed with a predefined margin. I always drop a panel into the group box so that the controls display uniformly.
Another useful tip for working with panels and control layout, is to use the "Document Outline" window within visual studio. This will illustrate the entire contents of the form in a hierarchical display and allow you to select controls which you would otherwise not be able to select. Note. You can also drag controls into other containers using this window.
Regards,
Tim