I have a repeater control in which I hava 2 labels and a radcombo box. I am able to populate the labels and the radcombobox.
The way it should work is I need to map a label text to the value in the radcombo box . The problem is even though the value in the combo is selected it keeps reseting to the first item in the drop down list.
Can someone help me to keep the selected value of the radcombo box selected.See attached jpg.
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"MainContent"
runat
=
"server"
>
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager1"
runat
=
"server"
>
</
telerik:RadStyleSheetManager
>
<
h2
>Server Request Dynamic Reports Creation</
h2
>
<
p
>
<
telerik:RadScriptManager
ID
=
"rsmDynamicReports"
Runat
=
"server"
>
</
telerik:RadScriptManager
> </
p
>
<
telerik:RadAjaxPanel
ID
=
"RadDynamicRpt"
runat
=
"server"
HorizontalAlign
=
"NotSet"
>
<
table
id
=
"telerikTable"
>
<
tr
valign
=
"top"
>
<
td
> <
asp:Label
ID
=
"lblRptServer"
runat
=
"server"
Text
=
"Report Server :"
Font-Size
=
"Small"
></
asp:Label
></
td
>
<
td
colspan
=
"2"
> <
asp:DropDownList
ID
=
"ddlDynamicRpt"
runat
=
"server"
AutoPostBack
=
"True"
ForeColor
=
"#3366FF"
Font-Size
=
"Small"
>
<
asp:ListItem
Value
=
"0"
>--Select One--</
asp:ListItem
> </
asp:DropDownList
></
td
>
</
tr
>
<
tr
valign
=
"top"
>
<
td
colspan
=
"3"
><
asp:Label
ID
=
"lblReportName"
runat
=
"server"
Text
=
"Select Report :"
Font-Size
=
"Small"
></
asp:Label
></
td
>
</
tr
>
<
tr
valign
=
"top"
>
<
td
></
td
>
<
td
colspan
=
"2"
>
<
div
style
=
"width: 396px"
>
<
asp:Panel
ID
=
"panel1"
Width
=
"400px"
BorderStyle
=
"Solid"
BorderWidth
=
"1pt"
ScrollBars
=
"Vertical"
runat
=
"server"
>
<
asp:TreeView
ID
=
"tvCatalog"
runat
=
"server"
AutoGenerateDataBindings
=
"true"
BorderStyle
=
"none"
Height
=
"100px"
Font-Size
=
"Small"
>
</
asp:TreeView
>
</
asp:Panel
>
</
div
></
td
>
</
tr
>
<
tr
valign
=
"top"
>
<
td
><
asp:Label
ID
=
"label1"
runat
=
"server"
Text
=
"Report Path :"
Font-Size
=
"Small"
></
asp:Label
></
td
>
<
td
colspan
=
"2"
><
telerik:RadTextBox
ID
=
"RadPath"
runat
=
"server"
Width
=
398px
ForeColor
=
"#3366FF"
BorderStyle
=
"Solid"
BorderWidth
=
"1pt"
Enabled
=
"False"
Font-Size
=
"Small"
></
telerik:RadTextBox
></
td
>
</
tr
>
<
tr
valign
=
"top"
>
<
td
></
td
>
<
td
colspan
=
"2"
>
<
table
>
<
asp:Repeater
ID
=
"rptFields"
runat
=
"server"
>
<
HeaderTemplate
>
<
tr
>
<
td
width
=
"150px"
>
<
asp:Label
ID
=
"lblReportParam"
runat
=
"server"
ForeColor
=
"Blue"
Text
=
"Report Parameter"
Font-Bold
=
"true"
></
asp:Label
>
</
td
>
<
td
>
<
asp:Label
ID
=
"lblServeRequest"
runat
=
"server"
ForeColor
=
"Blue"
Text
=
"Server Request Field"
Font-Bold
=
"true"
></
asp:Label
>
</
td
>
</
tr
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"lblReportParamField"
runat
=
"server"
Text='<%# Bind("RptParam") %>'></
asp:Label
>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"rcbServerRequest"
runat
=
"server"
OnItemDataBound
=
"rptFields_ItemDataBound"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
</
ItemTemplate
>
</
asp:Repeater
>
</
table
>
</
td
>
</
tr
>
<
tr
valign
=
"top"
>
<
td
> </
td
>
<
td
colspan
=
"2"
>
<
asp:Button
ID
=
"btnrpt"
runat
=
"server"
Text
=
"Submit"
/></
td
>
</
tr
>
</
table
>
</
telerik:RadAjaxPanel
>
</
asp:Content
>