RADInputManager vs. RadTextBox validation problems

4 posts, 0 answers
  1. Marbry
    Marbry avatar
    123 posts
    Member since:
    Aug 2012

    Posted 27 Jul 2011 Link to this post

    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.
  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 03 Aug 2011 Link to this post

    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.

  3. Marbry
    Marbry avatar
    123 posts
    Member since:
    Aug 2012

    Posted 03 Aug 2011 Link to this post

    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.
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 08 Aug 2011 Link to this post

    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.

Back to Top