Is there a recommended way for setting up a RadioGroupItem displaying user friendly Strings for choices, but using a Boolean as the underlying value? I need a radio button option as the editor type for a ListGridField, and it needs to have 3 options. Each one would map to the 3 possible values for a Boolean - null, true, false.
I tried setting a value map which would map the Strings to each of these Boolean values, but when I try to assign that valueMap, there's a problem with casting the values between the two types. I am aware of setValueFormatter(), and that may work for translating a data value to display value, but I'm not sure I see a way to translate the user selected String to the Boolean value when a selection is made.
I'm guessing this isn't related to any particular version of SmartGWT, but I'm using a nightly 9-18 build of SmartGWT 2.5, tested in FF, IE9 and Chrome.
Thanks
I tried setting a value map which would map the Strings to each of these Boolean values, but when I try to assign that valueMap, there's a problem with casting the values between the two types. I am aware of setValueFormatter(), and that may work for translating a data value to display value, but I'm not sure I see a way to translate the user selected String to the Boolean value when a selection is made.
I'm guessing this isn't related to any particular version of SmartGWT, but I'm using a nightly 9-18 build of SmartGWT 2.5, tested in FF, IE9 and Chrome.
Thanks
Comment