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

Text boxes validations

1 Answer 89 Views
Input
This is a migrated thread and some comments may be shown as answers.
Tad
Top achievements
Rank 2
Tad asked on 19 Mar 2012, 08:26 PM

Hi, 

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?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Mar 2012, 09:07 AM
Hello,

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.
JS:
function invalidate()
 {
  var tb = $find("<%= RadNumericTextBox.ClientID %>");
  tb._invalid = true;
  tb.updateCssClass();
  return false;
 }

Thanks,
Princy.
Tags
Input
Asked by
Tad
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or