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

RadInputManager Mandatory Field Validation Issue

1 Answer 83 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mahesh Babu
Top achievements
Rank 1
Mahesh Babu asked on 05 Aug 2009, 04:32 AM
Hi,

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??

Thanks,
Mahesh

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Aug 2009, 12:55 PM
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

-Shinu.
Tags
Input
Asked by
Mahesh Babu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or