This is a migrated thread and some comments may be shown as answers.

RadComboBox allowcustomtext truncates trailing zeros in Internet Explorer .

2 Answers 40 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tristan
Top achievements
Rank 1
Tristan asked on 16 May 2013, 08:40 AM
Hello,

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">
    <title></title>
     
</head>
<body>
    <form id="form1" runat="server">
     <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
      
    <div>
    <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>
    </div>
    </form>
</body>
</html>

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 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 21 May 2013, 12:19 PM
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?

Greetings,
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.
0
Tristan
Top achievements
Rank 1
answered on 23 May 2013, 05:01 AM
Thanks, Genady Sergeev 
The radcombobox is now working as expected upon updating to the latest release.
Tags
ComboBox
Asked by
Tristan
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Tristan
Top achievements
Rank 1
Share this question
or