Control border colour via JQuery CSS

3 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 05 Feb 2015 Link to this post

    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. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 10 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 10 Feb 2015 in reply to Nencho Link to this post

    Many thanks Nencho, I'll give that a try later on.

    Regards

    Jon
Back to Top