JanwalkarPooja
Top achievements
Rank 2
JanwalkarPooja
asked on 14 May 2013, 12:48 PM
Hi Telerik Team,
Is it possible to manipulate System date and time with other selected Location/City combo-box control.
Generally,Calendar control always highlighted current date according to system date and time.
But in my project I don't want this behavior. I want that my calendar should follow or highlighted current date with selected different city/location view.
How do I programmatically or XAML Style/Theme through achieve this scenario?
I am looking forward you reply.
Regards,
Pooja
Is it possible to manipulate System date and time with other selected Location/City combo-box control.
Generally,Calendar control always highlighted current date according to system date and time.
But in my project I don't want this behavior. I want that my calendar should follow or highlighted current date with selected different city/location view.
How do I programmatically or XAML Style/Theme through achieve this scenario?
I am looking forward you reply.
Regards,
Pooja
6 Answers, 1 is accepted
0
Hello,
Thank you for contacting us.
In the current version of the control it is not possible to set the Today highlight to a different day then the one that is set to the system. In order to achieve the desired behavior you will need to use a custom DayButtonStyleSelector. You will need to:
Regards,
Vladi
the Telerik team
Thank you for contacting us.
In the current version of the control it is not possible to set the Today highlight to a different day then the one that is set to the system. In order to achieve the desired behavior you will need to use a custom DayButtonStyleSelector. You will need to:
- Set the IsTodayHighlighted property of the RadCalendar control to False.
- Created a custom TodayStyleSelector that inherits the StyleSelector class and override its SelectStyle method.
- In that custom StyleSelector write a logic that will return a custom SpecialTodayDate Style for the date you want to be selected.
- Define the newly created TodayStyleSelector in the xaml and set its SpecialTodayDate Style that targets CalendarButton.
- Copy the Template from that TargetType from the theme you are using, find the Border with x:Name="TodayVisual" and set its Visibility to Visible.
I created and attached a sample project for you with the described approach, hope this is helpful.
Regards,
Vladi
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
JanwalkarPooja
Top achievements
Rank 2
answered on 22 May 2013, 09:57 AM
Hi Vladi
,
Thank you for such good solution.
But In my project,telerik:RadScheduleView control is used.
And in that ,How do i customize the TodayDay style.
I am looking forward you reply.
Regards,
Pooja
Thank you for such good solution.
But In my project,telerik:RadScheduleView control is used.
And in that ,How do i customize the TodayDay style.
I am looking forward you reply.
Regards,
Pooja
0
Hi,
In order to apply the same customization to all the DateTime/DatePickers in the ScheduleView control you will need to customize the EditAppointmentDialogStyle and EditRecurrenceDialogStyle of the control and in those Styles customize their Templates and set the CalendarStyle of all the DateTime/DatePicker controls to the custom Style from the previous example.
I updated the project with the described approach for you, hope this is helpful.
Regards,
Vladi
Telerik
In order to apply the same customization to all the DateTime/DatePickers in the ScheduleView control you will need to customize the EditAppointmentDialogStyle and EditRecurrenceDialogStyle of the control and in those Styles customize their Templates and set the CalendarStyle of all the DateTime/DatePicker controls to the custom Style from the previous example.
I updated the project with the described approach for you, hope this is helpful.
Regards,
Vladi
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Hardik
Top achievements
Rank 2
answered on 21 Aug 2013, 10:45 AM
Hi Admin,
Me and Pooja are working on same project. The demo you have shared is helpful. This demo is for changing the calendar control's style as current date should not be selected of system. But the main issue is in Schedule view by default the highlighted date is system's current date. We have bind Scheduleview's currentdate property from code behind. When scheduleview loads it displays the currentdate property but the highlighted date is system's current date.
We want to achieve that what we have bind with currentdate property of scheduleview that needs to be highlighted in all the views of scheduleview control.
So please provide us any workaround for this particular requirement.
Thanks in advance.
Me and Pooja are working on same project. The demo you have shared is helpful. This demo is for changing the calendar control's style as current date should not be selected of system. But the main issue is in Schedule view by default the highlighted date is system's current date. We have bind Scheduleview's currentdate property from code behind. When scheduleview loads it displays the currentdate property but the highlighted date is system's current date.
We want to achieve that what we have bind with currentdate property of scheduleview that needs to be highlighted in all the views of scheduleview control.
So please provide us any workaround for this particular requirement.
Thanks in advance.
0
Hello,
Unfortunately in the current version of the RadScheduleView control the customization of the GroupHeaderButtons in the different views is not easily achievable. We will take in consideration the possibly of implementing a feature that will allow the customizations of those GroupHeaderButtons which will make it possible to change the Today highlighted GroupHeaderButton.
We will update you in this post as soon as we have more information on the case.
Regards,
Vladi
Telerik
Unfortunately in the current version of the RadScheduleView control the customization of the GroupHeaderButtons in the different views is not easily achievable. We will take in consideration the possibly of implementing a feature that will allow the customizations of those GroupHeaderButtons which will make it possible to change the Today highlighted GroupHeaderButton.
We will update you in this post as soon as we have more information on the case.
Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Hi,
As mentioned previously in the current version of RadScheduleView control achieving the desired behavior is not a straight forward task that could lead to use unexpected behaviors.
If we receive enough demand for such customizations of the buttons in the MonthView we may implement a built-in feature that will allow the customizations of those buttons.
Regards,
Vladi
Telerik
As mentioned previously in the current version of RadScheduleView control achieving the desired behavior is not a straight forward task that could lead to use unexpected behaviors.
If we receive enough demand for such customizations of the buttons in the MonthView we may implement a built-in feature that will allow the customizations of those buttons.
Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>