RadComboBox allowcustomtext truncates trailing zeros in Internet Explorer .

3 posts, 1 answers
  1. Tristan
    Tristan avatar
    2 posts
    Member since:
    May 2010

    Posted 16 May 2013 Link to this post


    We are having a problem with the rad combo box wherein when the allowcustomtext attribute set to true.
    When inputting values such as 140000, upon post back the value in changed to 14.

    This occurs only if:
     - the said value is not in the drop down.
    - the entered value is purely integer
    - browser is Internet Explorer (currently using IE 9)

    Can be replicate using a simple setup with aspx seen below:

    <head runat="server">
        <form id="form1" runat="server">
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadComboBox ID="radcbx1" runat="server" AllowCustomText="True"></telerik:RadComboBox>
        <asp:Button ID="btn1" runat="server" Text="Button" OnClick="Button1_Click" />
        <asp:TextBox ID="txtbox1" runat="server" Width="362px"></asp:TextBox>

    With the source code below:

    protected void Page_Load(object sender, EventArgs e)
           if (!IsPostBack)
           radcbx1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("12000"));
           radcbx1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("122"));
           radcbx1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("12222"));
           radcbx1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("1000"));
           radcbx1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("12"));
       protected void Button1_Click(object sender, EventArgs e)
           txtbox1.Text = radcbx1.Text;

    When you input the value 140000 in the radcombobox then click the button.  The text box and radcombobox value becomes 14, we expect both to be 140000 though.

    Please share you thoughts on this scenario. Thanks.
  2. Answer
    Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 21 May 2013 Link to this post

    Hi Tristan,

    I confirm that such bug existed, however, it is already fixed by our developers. Is it possible to update to service pack 1 of the latest release?

    Genady Sergeev
    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.
  3. Tristan
    Tristan avatar
    2 posts
    Member since:
    May 2010

    Posted 23 May 2013 Link to this post

    Thanks, Genady Sergeev 
    The radcombobox is now working as expected upon updating to the latest release.
Back to Top