Does anybody have an example on how to databind a RadioButtonList inside of a RadListView? I have been trying for hours so any help will be much appreciated.
Here is a small code snippet:
<
telerik:RadListView
ID
=
"rlvQuestions"
DataSourceID
=
"EntityDataSource1"
runat
=
"server"
ItemPlaceholderID
=
"QuestionsContainer"
DataKeyNames
=
"EMPLID,Q_ORDER,FISCAL_YEAR"
>
<
LayoutTemplate
>
<
fieldset
id
=
"FiledSet1"
>
<
legend
>Questions</
legend
>
<
div
class="RadListView RadListView_<%# Container.Skin %>">
<
asp:PlaceHolder
ID
=
"QuestionsContainer"
runat
=
"server"
></
asp:PlaceHolder
>
</
div
>
</
fieldset
>
</
LayoutTemplate
>
<
ItemTemplate
>
<
fieldset
>
<
table
style
=
"width:100%; border:none;"
>
<
tr
>
<
td
style
=
"width:60%; vertical-align:top; padding-top:2px; text-align:left"
>
<
div
style
=
"width:520px; margin:0 0;"
>
<
div
style
=
"width:20px; height:auto; text-align:left; float:left; display:inline;"
>
<
asp:Label
ID
=
"lblQNum"
CssClass
=
"SectionLabel"
runat
=
"server"
Text='<%# Bind("Q_ORDER")%>'></
asp:Label
>.
</
div
>
<
div
style
=
"width:500px; height:auto; text-align:left; float:left; display:inline;"
>
<
asp:Label
ID
=
"Label2"
CssClass
=
"PopupTeal"
runat
=
"server"
Text='<%# Bind("QUESTION")%>' /><
br
/>
</
div
>
</
div
>
</
td
>
<
td
style
=
"width:40%; text-align:left"
>
<
asp:Label
ID
=
"lblbAssessment"
CssClass
=
"DisplayTextBold"
runat
=
"server"
Text
=
""
/>
<
asp:RadioButtonList ID
=
"rbAssessment"
CssClass
=
"DisplayTextBold"
RepeatColumns
=
"2"
RepeatDirection
=
"Vertical"
RepeatLayout
=
"Table"
runat
=
"server"
>
<
asp:ListItem
Value
=
"Exceeded Goals"
/>
<
asp:ListItem
Value
=
"Achieved Goals"
/>
<
asp:listitem
Value
=
"Did Not Meet Goals"
/>
<
asp:ListItem
Value
=
"N/A"
/>
</
asp:RadioButtonList
>
</
td
>
</
tr
>