Text boxes validations

2 posts, 0 answers
  1. Tad
    Tad avatar
    9 posts
    Member since:
    Feb 2008

    Posted 19 Mar 2012 Link to this post


    I have a problem related with RadNumericTextBox, RadDateInput and RadMaskedTextBox. I use a RadInputManager control, to validate some textboxes (they need to be required), and it works ok on asp:TextBox controls, but on telerik controls it doesn't seem to work. I want to have the same behavior with red textbox border and the yellow triangle with exclamation mark inside if the fields are required. Is there something i have to set on the controls?


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Mar 2012 Link to this post


    Referring to the knowledge base, "there are two groups of controls which are extended using the RadInputManager. The first are controls which are located directly on the page, such as a normal text box, somewhere on the form. The second are text boxes located in another control - for example a text box nested in a repeater."
    I would suppose that this is an expected behavior -- that RadControls can't be used with RadInputManager.
    You can check the validation of RadNumericTextBox,RadDateInput,RadMaskedTextBox by using javascript as follows.
    function invalidate()
      var tb = $find("<%= RadNumericTextBox.ClientID %>");
      tb._invalid = true;
      return false;

Back to Top