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

Control border colour via JQuery CSS

2 Answers 10 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 05 Feb 2015, 01:21 PM
Hi,
I've got my drop down lists working with border coloured validation using JQuery.  Now that I am trying to do the same thing with RadComboBoxes I can't seem to get the relevant css classes.  Below is how I am doing this to the drop down lists.  How do I do the same with ComboBoxes?

Regards

Jon

var $ = $telerik.$;
var dropDown = dropDownTree.get_element();
if (eventArgs.IsValid === false) {
    $(dropDown).find(".rddtInner").addClass("RadDropDownTreeFieldErrorHighlight");
} else {
    $(dropDown).find(".rddtInner").removeClass("RadDropDownTreeFieldErrorHighlight");
}

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 10 Feb 2015, 08:29 AM
Hello Jon,

You can still use jQuery, in order to add the class, which applies the colored border, however, you need to set the RenderMode property of the RadComboBox to Lightweight. Please find in the attachment a simple example, demonstrating this implementation.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 10 Feb 2015, 09:26 AM
Many thanks Nencho, I'll give that a try later on.

Regards

Jon
Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Jon
Top achievements
Rank 1
Share this question
or