Change the default start Date

7 posts, 0 answers
  1. JanwalkarPooja
    JanwalkarPooja avatar
    20 posts
    Member since:
    Jan 2013

    Posted 14 May 2013 Link to this post

    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
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 17 May 2013 Link to this post

    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:
    1. Set the IsTodayHighlighted property of the RadCalendar control to False.
    2. Created a custom TodayStyleSelector that inherits the StyleSelector class and override its SelectStyle method.
    3. In that custom StyleSelector write a logic that will return a custom SpecialTodayDate Style for the date you want to be selected.
    4. Define the newly created TodayStyleSelector in the xaml and set its SpecialTodayDate Style that targets CalendarButton.
    5. 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.

  3. DevCraft banner
  4. JanwalkarPooja
    JanwalkarPooja avatar
    20 posts
    Member since:
    Jan 2013

    Posted 22 May 2013 Link to this post

    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
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 27 May 2013 Link to this post

    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

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Hardik
    Hardik avatar
    9 posts
    Member since:
    Nov 2011

    Posted 21 Aug 2013 Link to this post

     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.
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 26 Aug 2013 Link to this post

    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
    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 >>
  8. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 09 Sep 2013 Link to this post

    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
    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 >>
Back to Top
DevCraft banner