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

DateTimePicker styling

1 Answer 70 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 02 May 2011, 04:46 PM
Using this code

<telerik:RadTimePicker x:Name="startTimePicker" Width="80" telerik:StyleManager.Theme="{StaticResource customClock}" >
                            <telerik:RadTimePicker.ClockPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel />
                                </ItemsPanelTemplate>
                            </telerik:RadTimePicker.ClockPanel>
</telerik:RadTimePicker>

I would get this UI result:  (See oldtelerik ui.png as I am not sure how to link it)



Now it seems I need to use the RadTimePicker.ClockStyle like this:
<telerik:RadTimePicker x:Name="startTimePicker" Width="80" telerik:StyleManager.Theme="{StaticResource customClock}" >
                            <telerik:RadTimePicker.ClockStyle>
                                <Style TargetType="telerik:RadClock">
                                    <Setter Property="ItemsPanel">
                                        <Setter.Value>
                                            <ItemsPanelTemplate>
                                            </ItemsPanelTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </telerik:RadTimePicker.ClockStyle>
                        </telerik:RadTimePicker>


But this second one gives me something that looks very different. (See newtelerik ui.png)


So, how do I achieve the old look that I had using the new ClockStyle?

All of the documentation seems to be using the old ClockPanel and HeaderContent and are unhelpful as those things seem to be gone in the new version.

Thanks,
Ralph

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 04 May 2011, 09:15 AM
Hi Ralph,

Since Q2 2010 (July 2010)  the RadTimePicker control is part of the RadDateTimePicker control and considerable changes were made. Please, use the RadDateTimePicker online documentation for reference. The RadTimePicker documentation will be revised and updated where needed.

To accomplish the look that you previously used for RadTimePicker, find attached  an illustrative example of how you can customize the RadTimePicker with the ClockStyle.

I hope this helps.

All the best,
Dani
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
DateTimePicker
Asked by
Ralph
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or