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

[Solved] Adding a style to the date picker's calendar

3 Answers 109 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 22 Sep 2010, 02:56 PM
Hi,

I am using the date picker.  The calender that pops up seems to be in a table.  I need to style this table, I need to add the following style to it:  margin:0;

I would prefer to have my this style in my stylesheet that is referenced in my date picker.

How would I do this?

Thanks
Brendan

3 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 22 Sep 2010, 03:31 PM
Hello Brendan,

You can style the datepicker table using the following CSS:

    div.t-datepicker-calendar .t-content
    {
        margin: 0;
    }


Best wishes,
Alex Gyoshev
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
Brendan Vogt
Top achievements
Rank 1
answered on 22 Sep 2010, 03:38 PM
Thanks it works.

I probably could have done it on my own, but when I viewed the source I could not see the styling of the date picker.  With the grid I could clearly see a table, so I applied my style to it.  How do I view the HTML source of the date picker?

Is there documentation on this styling?
0
Alex Gyoshev
Telerik team
answered on 22 Sep 2010, 04:18 PM
Hello Brendan,

The popup calendar is dynamically generated through JavaScript. The easiest way to inspect its HTML is through a developer toolbar, preferably Firebug. Sadly, there is no other styling documentation - you might want to check the visual style builder, though.

Best wishes,
Alex Gyoshev
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
Date/Time Pickers
Asked by
Brendan Vogt
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Brendan Vogt
Top achievements
Rank 1
Share this question
or