RadInputManager Mandatory Field Validation Issue

2 posts, 0 answers
  1. Mahesh Babu
    Mahesh Babu avatar
    44 posts
    Member since:
    Jul 2009

    Posted 04 Aug 2009 Link to this post


    I have a form which contains textbox and radio button controls in which some textboxes are mandatory. I have a radio button and textbox where the textbox will be enabled when I click on the radio button. The textbox should be a mandatory field only when the textbox is enabled. When the textbox is disabled/read only, it should not be considered as a mandatory field.

    But, in my scenario it is considering the disabled/readonly textbox also as mandatory field. How can change this behaviour??

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Aug 2009 Link to this post

    Hi Mahesh,

    One suggestion would be using CustomValidator control to validate the RadTextBoxes. You can easily check for whether the textboxes are disabled (using get_enabled() method) or not and then set the isValid property accordingly in ClientValidationFunction of validation control.

    You can checkout the following documentation links which shows most important client side methods used for RadTextBox.
    Client-Side Basics
    RadTextBox Client Object

Back to Top