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
Hello, yes the issue is resolved now thanks :)
I did check the code in a new project and found out that not the datatype of the column itself is the problem but rather the assignment of the ValueList items. There had been a cast to string inside, which we use for dropdown lists. For radio buttons this is not allowed, the ValueListItem collection should contain only Integer´s...
regards Florian
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
Regards
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