how to create datepicker style ?

5 posts, 1 answers
  1. raj
    raj avatar
    31 posts
    Member since:
    Jul 2011

    Posted 14 Jul 2011 Link to this post

    Hi,
    I have to modify the style of Datepicker control which is displaying at right top corner of SchedulerView control, please see the attached image.
    I am not able to see that in Expression Blend.

    Thanks in advance.

  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 15 Jul 2011 Link to this post

    Hi Raj,

    In order to be able to modify the style for RadDatePicker control in the navigation header of RadScheduleView, you need to generate the control template of RadScheduleView as there is no exposed style property for the RadDatePicker in particular.

    In the generated template search for NavigationDateTimePickerStyle.

    I hope this helps.


    All the best,
    Dani
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. raj
    raj avatar
    31 posts
    Member since:
    Jul 2011

    Posted 15 Jul 2011 Link to this post

    Hi Dani,
    Thanks for reply,

    I have generated control template from blend and found the NavigationDateTimePickerStyle, but how can i modify that black header and mouse hover styles in expression blend ?

    I am not able to see any color resources in resource view.

    any way to do it ?

    Thanks again.

  4. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 15 Jul 2011 Link to this post

    Hello Raj,

    RadDatePicker contains a drop-down button with a RadCalendar inside of it. So if you need to change the header background of the calendar, you need to modify the Style for the RadCalendar control.

    To do that, follow these steps:

    - Find the PART_Navigation RadDatePicker and edit its current template (NavigationDateTimePicker.png)
    - Generate the Style for the RadCalendar control (CalendarStyle.png)
    - Change the HeaderBackground brush that was generated together with the style of RadCalendar

    Which mouse over visual states do you want to change?


    Regards,
    Dani
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. raj
    raj avatar
    31 posts
    Member since:
    Jul 2011

    Posted 15 Jul 2011 Link to this post

    Hi Dani,
    Thanks for your help its working.
Back to Top