Hey,
I have a code of a radComboBox which is bind to a table with only 2 columns : agentID & agentName.
I set up dataTextField to agentName, and dataValueField to agentID.
The user can select in the comboBox the name of the agent, but when submitting the form the selectedValue returns null.
Any Ideas why ?
Thank you!
I have a code of a radComboBox which is bind to a table with only 2 columns : agentID & agentName.
I set up dataTextField to agentName, and dataValueField to agentID.
The user can select in the comboBox the name of the agent, but when submitting the form the selectedValue returns null.
Any Ideas why ?
Thank you!
<
telerik:RadComboBox
ID
=
"agentID_cmb"
Runat
=
"server"
AutoPostBack
=
"True"
DataSourceID
=
"SqlDataSource1"
DataTextField
=
"agentName"
DataValueField
=
"agentID"
onselectedindexchanged
=
"agentID_cmb_SelectedIndexChanged"
ontextchanged
=
"agentID_cmb_TextChanged"
Skin
=
"Office2007"
>
</
telerik:RadComboBox
>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:1122ConnectionString %>"
SelectCommand="SELECT [agentID],[agentName] FROM [tblagents]"></
asp:SqlDataSource
>