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

[Solved] DatePicker and Custom CSS

3 Answers 173 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 06 May 2011, 12:19 PM
I have a web page that contains a Telerik MVC DatePicker control. When I display the calender the colours are incorrect, text mis-aligned, etc. I looked through IE's developer tools and it looks like the calender is using my custom CSS for TH, TD, etc, etc. What is the best way to ensure that the Telerik MVC controls use the CSS from the style specified by StyleSheetRegistar?

Many Thanks

James

3 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 2
answered on 16 Sep 2011, 11:59 AM
I have same trouble, any help?
0
Dimo
Telerik team
answered on 16 Sep 2011, 12:13 PM
Hello,

This is a standard case of undesired CSS inheritance. It will be rather cumbersome to re-enforce the DatePicker styles, so the best and only solution is to ensure that your custom styles target only the elements that really need them. For example, you should use more specific selectors with CSS classes and/or IDs, instead of type selectors.

Regards,
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
0
Michael
Top achievements
Rank 2
answered on 16 Sep 2011, 12:18 PM
It would be a big help if we know what type of elements is used for DateTime picker.

Thanks.
Tags
Calendar
Asked by
James
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or