RadInputManager and RadTextBox

2 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    Oct 2008

    Posted 07 Apr 2009 Link to this post

    Is there a way to use the validation functionality of the RadInputManager for the RadTextBox?

    I've been trying to implement a "Required" validation for the RadTextBox without having to manually add RequiredFieldValidators, because we have web pages with many RadTextBoxes.
    I've been partially succesfull in implementing a own CompositeControl which dynamically adds the RadTextBox and the RequiredFieldValidator. I'm not sure if this is a definite solution because of many problems I encountered. Because of these problems I started researching the RadInputManager as an alternative.

    The post on Todd Anglin's blog: http://blogs.telerik.com/toddanglin/posts/08-12-12/Showing_RadToolTip_on_RadInput_input_error.aspx looks like the solution I need, except that it should work for RadTextBox.

    Thanks in advance for your help,

    Peter



  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 10 Apr 2009 Link to this post

    Hello Peter,

    Incase you rely on the implemenation of your composite control, you can indeed implement something similar to the validation mechanism you found in the blog post.

    Alternatively, you can simply replace the RadTextBox instances with regular MS TextBox controls and 'inputify' them using our RadInputManager control. To make the textboxes required, merely set the respective TextBoxSetting of the manager with IsRequired = true.

    Best regards,

    Sebastian

    the Telerik team


    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top