Hello,
I am trying to get a two checkbox fields (CheckBox1 and CheckBox2) in UD101A to never both be true at the same time. I have two row rules one for each check box with a condition when they are true. Then the custom action just sets the relevant checkbox to false based on the row rule being fired. So when checkbox 01 = True Checkbox02 is false.
The strange thing is that when I initially load the data from a search, click on checkbox02 it checks. I click checkbox01 and it unchecks checkbox02 as it should, but if I try to go back the other way checkbox02 flashes checked then clears again.
Basically I want to have similar behavior to radio buttons.
You mean put a radio button in the Ultragrid? I’ve never done that before. Never thought of that…Thinking it must be time for bed, I have been looking at this for too long…
Add the code as Jose mentioned to each test. Comments are pretty self explanatory about the arguments.
args.ProposedValue is the value the field will be changed to. args.Row[“Fieldname”] is the field you want to affect on in the test.Eg.