Unplanned
Last Updated: 24 Jan 2018 18:30 by Greg
ADMIN
Marin Bratanov
Created on: 24 Jan 2018 11:55
Category: UI for ASP.NET AJAX
Type: Bug Report
0
Item is not selected via SelectedValue='<%#Bind("fieldName") %>' when RadRadioButtonList has data bound items
This applies to data bound containers like grid template columns. 
For standalone control instances, see how to use the DataSelectedField here: https://docs.telerik.com/devtools/aspnet-ajax/controls/radiobuttonlist/data-binding/server-side-data-binding

When the items in the RadRadioButtonList are declared in the markup, the SelectedValue='<%#Bind("fieldName") %>' approach works as expected, but when the items are fetched from a data source, no item is pre-selected.

This works with the standard asp:RadioButtonList and so it must work with RadRadioButtonList.

Issue explanations and workarounds are available in the attached sample pages and videos below.

In short, the workarounds are:
- use declarative items when possible
- OR, use an <asp:RadioButtonList> and a <telerik:RadFormDecorator> to get uniform appearance of the radio buttons across browsers
1 comment
Greg
Posted on: 24 Jan 2018 18:30
You are incorrect. I declared the items in the RadRadioButtonList in the markup and not only does the SelectedValue='<%#Bind("fieldName") %>' NOT work as expected it throws a design time exception: "A call to bind must be assigned to a property of a control inside a template."

Attached Files: