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

Joining themes

3 Answers 79 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 28 May 2009, 03:05 PM
Hi!

I have got a datetimepicker (the textbox) with a theme created by me. I have also got a calendar with a theme created by me.

I want to use this calendar with the datetimepicker.

At the moment I have the datetimepicker and when I click on its box appears the default calendar theme and I would like to appear my one I have mentioned before.

How can I do this?because as far as I know with visual style builder when I try to make changes in the datetimepicker properties is not possible to change the calendar which is joined to it.

I hope you have understood what I want to get.

Thank you in advance.

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 30 May 2009, 04:47 PM
Hi Patxi,

Thank you for your question.

RadDateTimePicker is a compound control and it uses the theming of RadDateTimePicker (editor part) and RadCalendar. Therefore, in order to make a theme for RadDateTimePicker, you should create two themes, one for RadDateTimePicker and one for RadCalendar (as you have already did). An essential step in this scenario is that both themes should have one and the same ThemeName property. Then, you should just load the theme files in your project and your theme should be applied correctly.

If you need additional assistance, feel free to contact me.

Kind regards,
Nikolay
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
Patxi
Top achievements
Rank 1
answered on 02 Jun 2009, 04:47 PM
Hi Nikolay,

First of all, thank you for answering my post.

I don´t know if you have understood well my question or may be I have explained bad myself, most probably the second one.

I have given styles to datetimepicker using visual style builder so I have a xml file (dtpFile.xml) for its properties. The same happens for calendar. I have got another xml file for calendar styles (cldFile.xml).

Therefore my intention is to get a datetimepicker where for textbox is using dtpFile.xmñfile and the calendar that appears when I want to slect a date is using cldFile.xml file. It´s a combination of both.

You have written the following:  "An essential step in this scenario is that both themes should have one and the same ThemeName property". I don´t understand it very well, could you give me an example for this?

Thank you so much.
0
Accepted
Nikolay
Telerik team
answered on 05 Jun 2009, 04:38 PM
Hi Patxi,

Thank you for getting back to me.

By "An essential step in this scenario is that both themes should have one and the same ThemeName property" I mean that you should set one and the same ThemeName in Visual Style Builder for both themes that you have made. The ThemeName property of a theme could be set in the textbox that is positioned in the top right of Visual Style Builder.

As an additional support resource, you can refer to our help documentation: http://www.telerik.com/help/winforms/datetimepickerthemes.html

Greetings,
Nikolay
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.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Patxi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Patxi
Top achievements
Rank 1
Share this question
or