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

style problem

1 Answer 20 Views
Input
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 19 Oct 2010, 06:16 AM
Hi,
I am using RAdMaskedTextbox and RAdNumaricTextbox.

I am trying to set Styles for these at run time as follows.

TestInputNumStyle.EnabledStyle.CssClass =

 

"TextBox1";

 

TestMaskedStyle.EnabledStyle.CssClass = "TextBox1";

"TextBox1" is my css classes defined in css file.

When i do this the css is not setting to textboxes.

Please Help

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Oct 2010, 11:15 AM
Hello Kumar,

Most probably the CSS class is applied to the textboxes, but your CSS rule(s) does not have a high-enough specificity to override the embedded skin.

http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx

Try this:

html body form  .RadInput  .TextBox1
{
    ............
}


All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Input
Asked by
Kumar
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or