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

Question on telerik:GridNumericColumn with MaxLength=2 & NumericType="Percent"

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nagendra Thumuluru
Top achievements
Rank 1
Nagendra Thumuluru asked on 07 Jan 2016, 10:12 PM

Hello,

 

I had a question regarding the usage of telerik:GridNumericColumn with MaxLength=2 & NumericType=Percent. My input is 10. So the textbox automatically formats to 10 % in the UI. But, when I try to save the values, it colors the box with red, meaning the input is invalid. This however works when my MaxLength=4. This used to work 2009.3.1208.20 with MaxLength=2. We upgraded to 2015.1.225.35 & it started failing. I understand that there are a lot of changes. But how do I avoid this error?

 Any information is appreciated.

 

Thanks

Bobbie

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 13 Jan 2016, 06:44 AM
Hello Bobbie,

This happens due to change in RadInputRendering
http://docs.telerik.com/devtools/aspnet-ajax/controls/input/single-input-rendering-mode
By default in next version the property is set to true. The bug with MaxLength happens because of browser changes in 2014 year. Previous browsers were not validating the max length.

The issue is fixed in our latest version. Another solution will be to set the SingleInputRendering=false, to get the old behavior, or to set MinValue=0 and MaxValue=99 instead of MaxLength=2

Regards,
Vasil
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Nagendra Thumuluru
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or