Joining themes

4 posts, 1 answers
  1. Patxi
    Patxi avatar
    70 posts
    Member since:
    Feb 2009

    Posted 28 May 2009 Link to this post

    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.
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 30 May 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Patxi
    Patxi avatar
    70 posts
    Member since:
    Feb 2009

    Posted 02 Jun 2009 Link to this post

    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.
  5. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 05 Jun 2009 Link to this post

    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.
Back to Top