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

[Solved] for numeric textboxes, jquery validation showing to left of input

3 Answers 162 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel Collier
Top achievements
Rank 1
Daniel Collier asked on 24 Mar 2010, 05:54 PM
For datepicker and normal textboxes the validation message shows to the right, but for any numeric textboxes, using jquery "required" validation, the validation error message shows to the left of the textbox.  Do you have any idea why it would be doing this?  Using FF web developer toolbar, I looked at the styles of all the validation error text and they all seem the same, so it must be some logic issue where jquery or telerik is inputting the message between the opening div and the numeric input.

Thanks for your help!

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 Mar 2010, 11:12 AM
Hello Daniel,

jQuery validation includes error label after all input controls (or the ones added as rules). Hence the only resolution for the aforementioned behavior is to reorder inputs in the div wrapper. For your convenience I have attached the minified telerik.textbox.js file which includes the fix. It also will be included in the next release of the Telerik Components for ASP.NET MVC.

Regards,
Georgi Krustev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel Collier
Top achievements
Rank 1
answered on 15 Apr 2010, 05:37 PM
Thanks for your reply.  This is successfully makes the validation show to the right of the textbox.  However, since you're switching the display and value textboxes, this introduces a new bug whereby the input with the desired name, is submitting the display value instead of the actual value.  For example, for a field called cost, you're now submitting:

cost: "$150.25"
cost-text: 150.25

The display value obviously can't be typecast to a nonnullable int, so its throwing an error.  Can you please resolve this?  Thanks.
0
Georgi Krustev
Telerik team
answered on 16 Apr 2010, 08:19 AM
Hello Daniel,

Thank you for pointing this known issue. I am glad to inform you that the problem was fixed and it will be available in the next release of the Telerik Components for ASP.NET MVC.

For your convenience I have attached the js file with the applied fix.

Best wishes,
Georgi Krustev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
NumericTextBox
Asked by
Daniel Collier
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Daniel Collier
Top achievements
Rank 1
Share this question
or