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.
Hi there,
Am using Infragistics.Win.UltraWinEditors.UltraOptionSet and added value during runtime using ValueList.
ValueList vList = new ValueList();
vList.ValueListItems.Add(
"J", "Joy");
"R", "Rest");
this.uopt.ValueList = vList;
when the form is loaded i send the uopt.Value = "J" or NULL when the value is null default i assign value as "J" with uopt.CheckedIndex = 0;
and it work fine, but when i change the value for example uopt.Value as R and Load the vList again it reset the uopt.Value = null please help on this issue.
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
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
Hello,
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.