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

DateTimePicker Theme problem

2 Answers 69 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 22 Apr 2009, 07:36 PM
Hi All,

I've got a form with some RadDateTimePicker controls.  None of them respect the page's Theme (Set in Page PreInit) as Theme = "Black" - they all end up looking like the default theme, this affects the text box and the icons.  Everything else on the page works fine.

I've replicated with the code shown below.  Note that with the code below you need Theme = "Black" in the PreInit as I am not setting controls manually.  Also note that the DatePicker works properly but the TimePicker fails as per the DateTimePicker.

I assume that this is being caused by a bug - is it due for a fix anytime soon.  I'd prefer not to have a workaround put in place if it will be fixed in an upcoming release.

Regards,

Jon

    <telerik:RadDateTimePicker ID="RadDateTimePicker1" Runat="server" Culture="English (United Kingdom)">  
        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton> 
        <TimeView CellSpacing="-1" Culture="English (United Kingdom)"></TimeView> 
        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar> 
        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> 
    </telerik:RadDateTimePicker> 
    <telerik:RadTextBox ID="RadTextBox1" Runat="server">  
    </telerik:RadTextBox> 
    <telerik:RadTimePicker ID="RadTimePicker1" Runat="server">  
    </telerik:RadTimePicker> 
    <telerik:RadDatePicker ID="RadDatePicker1" Runat="server">  
    </telerik:RadDatePicker> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" /> 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 27 Apr 2009, 07:51 AM
Hello Jon,

The Skin property in the ASP.NET theme must be set to the date/time picker controls, not the Calendar / TimeView / DateInput child controls. Have you done it this way?

Also, please explain what do you mean by "TimePicker fails as per the DateTimePicker".

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jon
Top achievements
Rank 1
answered on 27 Apr 2009, 02:41 PM
Hi Dimo,

Good point.  2nd time that I've fallen for this issue.  I hadn't put it in the skin file!

The DateInput was in the skin file not not the rest - how stupid do I feel now?

Many thanks for pointing that out.

Regards,

Jon
Tags
Calendar
Asked by
Jon
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jon
Top achievements
Rank 1
Share this question
or