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

RADInputManager vs. RadTextBox validation problems

3 Answers 76 Views
Input
This is a migrated thread and some comments may be shown as answers.
Marbry
Top achievements
Rank 1
Marbry asked on 27 Jul 2011, 11:24 PM
In trying to handle validation for both RADTextBoxes, and asp text boxes with input manager, I've run into a couple of problems.

The handler works with RADTextBox's, being called on the OnBlur event.  At that point the _invalid client property is set.

With the regular asp text boxes using input manager, the OnBlur (and others like error) handler defined in the input manager is called BEFORE the validation is performed on the text box, so that isValid() does not return the proper value.  Is there some other way to catch that?

The other issue, is that with the regular asp text boxes and input manager, it doesn't handle content pasted into the box.  That is I can paste an invalid value in that it won't let me type, and it won't catch it as invalid at all.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Aug 2011, 08:38 AM
Hi Marbry,

You can try handling the OnValidating client-side event of the relevant setting and validate the value there. Please check out the forum thread which elaborates on similar subject:
http://www.telerik.com/community/forums/aspnet-ajax/input/radinputmanager-validation-isrequired-white-space.aspx

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Marbry
Top achievements
Rank 1
answered on 03 Aug 2011, 02:58 PM
Thanks, I'll give it a try although that's kind of what I was trying to avoid.  If I have to write my own validator for something that's a normal validation handled by the control it kind of negates part of the reason for using the control in the first place.
0
Pavlina
Telerik team
answered on 08 Aug 2011, 01:13 PM
Hi Marbry,

I suppose that the forum thread below will be useful for you:
http://www.telerik.com/community/forums/aspnet-ajax/input/showing-error-style-programmatically.aspx

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Input
Asked by
Marbry
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Marbry
Top achievements
Rank 1
Share this question
or