I am attempting to use an OptionSetEditor on an individual cell with a valuelist also on that particular cell. While the editor does show the options as radio buttons the selected value does not seem to register in the cell itself; that is when I select a radio button and then exit that cell (by clicking on some other part of the grid or UI) the selection disappears and all radio buttons are in the not selected state. What factor am I missing when working with these types of cell editors ?
NetAdvantage v9.2
thanks for any help
I just wanted to add an amendment to this post giving some further details...
The OptionSetEditor is actually saving the state properly but it is visible only when in edit mode (i.e. when clicking in the cell). This recalls my experience with the WinControlContainerEditor where a separate editor is needed for rendering and actual editing. Is there something related to that going on here?
thanks
Hi,
I made one small project that show how to use "UltraOptionSetEditor" on an individual cell. Please test the example and if you have any questions, please do not hesitate to ask me
Regards
Georgi
Hello both of you,
I add teh values via the value list colelction,and the column has dataype Int32 set. Also adding the editor options directly to the editor itself does not resolve the issue for me. Any other ideas?
regards
Florian
Hello Florian
Here is the attached sample. In the sample I set different EditorComponent to each Cell.
UltraOptionSet opset3 = new UltraOptionSet(); opset3.Items.Add(1, "Choice 1"); opset3.Items.Add(2, "Choice 2"); opset3.Items.Add(3, "Choice 3"); opset3.Items.Add(4, "Choice 4"); ultraGrid1.DisplayLayout.Rows[2].Cells[1].EditorComponent = opset3;
UltraOptionSet opset3 = new UltraOptionSet();
opset3.Items.Add(1, "Choice 1");
opset3.Items.Add(2, "Choice 2");
opset3.Items.Add(3, "Choice 3");
opset3.Items.Add(4, "Choice 4");
ultraGrid1.DisplayLayout.Rows[2].Cells[1].EditorComponent = opset3;
Please let me know if you have any questions, or if you think that your scenario is different
Check the UltraGridColumn.DataType property for column typing
Hi Georgi,
can you please also send me your example, I am experiencing the same issue at the moment.
Regards Florian