RadComboBox gives empty value but asp:dropdownlist works!

2 posts, 0 answers
  1. SK
    SK avatar
    17 posts
    Member since:
    Mar 2009

    Posted 11 Jan 2013 Link to this post

    I am dynamically loading the radcombobox in my program and getting emptyvalue when quering SelectedValue. This is working just fine with asp.net dropdownbox:

    In the aspx file I have:

    <asp:Repeater ID="rptTI" runat="server" EnableViewState="false">
         <telerik:RadCombobox ID="ddlPay"  runat="server" AutoPostBack="False" />

    in the cs file I have in the itemdatabound of the repeater:

    protected void OnItemDataBound(Object sender, RepeaterItemEventArgs e)
      DropDownList ddlPay = ((DropDownList)e.Item.FindControl("ddlPay"));
      ddlPay.DataSource = payrollDataView;
      ddlPay.DataTextField = "value";
      ddlPay.DataValueField = "id";

    Now when I save the value I am doing ddlPay.SelectedValue and it gives empty string.

    It is interesting to see if I change the RadCombobox to asp:DropDownList, it works just fine!
  2. Nencho
    Nencho avatar
    1890 posts

    Posted 14 Jan 2013 Link to this post

    Hello SK,

    I noticed that you sent us an identical support ticket (Ticket ID : 647924). I would like to ask you to continue our conversation in the other ticket in order to keep the correspondence consistent.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top