I have a RadioButtonList that I'm getting the following error when it renders in the IDE:
Properties of the RadioButtonList:
And the KeyValuePair setup like:
Is there something amiss? Project builds and it's rendered correctly in the form:
Value is stored in the table correctly as well.
enchev
January 12, 2022, 6:28am
2
Hi @kest874 ,
Check if the expression bound to Value property refers to a single value and not array since you can choose only single item with radio button list.
That maybe the issue, how do I specify the ValueProperty as an expression? int he screen capture above the fivesaudit.sort2problems in the "Value" is a single Int. The ValueProperty I just put 'Value' to get it working, in which it does. It just doesn't render in the IDE correctly.
enchev
January 12, 2022, 1:13pm
4
ValueProperty should be the property name that will be used to get the value from the list of values. You cannot use expression for this.
Did I miss a step to get the single value? I simply set the data to the ProblemChoices property I set above. The value is bound to a DB table.
Possible to provide a quick example as to how it should be setup. Its working correctly when I run it it's just an ugly mess in the IDE.
enchev
January 12, 2022, 1:25pm
6
Ah I see! We will do our best to fix our designer in such scenario.
Awesome thanks, it looks like this just for reference:
IDE:
Runtime:
Confirming this is fixed in 2.66.1:
You guys are awesome!
enchev
January 13, 2022, 9:06pm
9
Unfortunately we had to revert this fix , we will do our best to provide better early next week.
kest874
January 13, 2022, 9:08pm
10
No problem I'm working around the issue. Should I downgrade?
enchev
January 13, 2022, 9:12pm
11
kest874:
2.66.1
We reverted the fix in just released Radzen 2.66.2, if you want you can stop the auto update to prevent upgrade.
kest874
January 13, 2022, 9:14pm
12
That works, I'll just check for .3 next week no big deal. Thanks for your support!
enchev
January 14, 2022, 7:45am
13
Hi @kest874 ,
You can use new List<KeyValuePair<string, object>>
instead new []
until we find a way to support this. For example:
kest874
January 14, 2022, 5:53pm
14
This works fine, I will use it that way. You can back burner the fix for more important things.
Cheers