When I use a K2RadioButtonList, I add the items in the Collection.
None of the items are set as "Selected".
This should result in none of the radio buttons being selected when the form displays, but it does not.
As with the K2DropDownList, the first value in the list is the forced selected value.
It can be fixed by adding code to the build event of the page and setting the "SelectedIndex" value of the K2RadioButtonList control to "-1".
Bug?
Thanks
C
+1
Hi, I am new to K2 and am having the same issue as reported. Am i missing something? I can set the initial value on page load to -1, but do I then have have to create a different viewstate, since I have an activity that allows the user to save the form and come back later before final submittal. Setting the value to -1 would overwrite on the page the value from K2. Thanks
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.