Hi,
I'm having some problems using the radcombobox.
I'm loading the combobox with an ObjectDataSource and when I want to get the selectedItem, selectedValue or selectedIndex, they are always null, "" or -1.
I was reading that combobox cannot access data when you use on demand loading, but what's mean?
that it's the code:
<telerik:RadComboBox ID="rcb_leads" runat="server" Width="290px" |
DataValueField="IDLEAD" Filter="Contains" DataTextField="EMAIL" |
DataSourceID="ods_getLeads" Text="Search" AutoPostBack="True" |
onselectedindexchanged="rcb_leads_SelectedIndexChanged" > |
<HeaderTemplate> |
<table style="width: 275px" cellspacing="0" cellpadding="0"> |
<tr> |
<td style="width: 177px;"> |
Lead Name</td> |
<td style="width: 60px;"> |
Email</td> |
</tr> |
</table> |
</HeaderTemplate> |
<ItemTemplate> |
<table style="width: 275px" cellspacing="0" cellpadding="0"> |
<tr> |
<td style="width: 177px;"> |
<%# Eval("FIRSTNAME") + " " + Eval("LASTNAME") %></td> |
<td style="width: 60px;"> |
<%# Eval("EMAIL") %></td> |
</tr> |
</table> |
</ItemTemplate> |
</telerik:RadComboBox> |
and the datasource:
<asp:ObjectDataSource ID="ods_getLeads" runat="server" |
SelectMethod="GetLeadByUserId" TypeName="LeadSius.stuff.DataAccess"> |
<SelectParameters> |
<asp:SessionParameter Name="userId" SessionField="_userId" Type="Int32" /> |
</SelectParameters> |
</asp:ObjectDataSource> |
What is wrong with that?
Regards