Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Set Style From Code Behind

$
0
0
Hello Ryan,

We recommend you to apply styling by stylesheet and by JavaScript apply only a CSS class that can be used as a CSS selector. You can apply a custom CSS class to the RadComboBox by the following:
function pageLoad() {
    var combobox = $find("RadComboBox1").get_element();
    $telerik.$(combobox).addClass("custom");
}

After that you can apply color, border and background rules to the selector .RadComboBox.custom .rcbReadOnly {}. or .RadComboBox.custom .rcbInner {} - depending of the scenario.

Regards,
Magdalena
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>