Hi,
On validation fail I would like to switch the css class of the raddropdowntree in order to end up with a red border.
I am trying the following but not sure if it is my code or the css that is to blame. Any suggestions?
Regards
Jon
On validation fail I would like to switch the css class of the raddropdowntree in order to end up with a red border.
I am trying the following but not sure if it is my code or the css that is to blame. Any suggestions?
function RadDropDownTree_ValidationStyleSetter(textBox, eventArgs) {
if (eventArgs.IsValid === false) {
textBox.addCssClass('RadDropDownTreeFieldErrorHighlight');
} else {
textBox.removeCssClass('RadDropDownTreeFieldErrorHighlight');
}
}
if (eventArgs.IsValid === false) {
textBox.addCssClass('RadDropDownTreeFieldErrorHighlight');
} else {
textBox.removeCssClass('RadDropDownTreeFieldErrorHighlight');
}
}
Regards
Jon