Today button

5 posts, 1 answers
  1. Claire
    Claire avatar
    24 posts
    Member since:
    Apr 2015

    Posted 05 Nov 2015 Link to this post

    Is it possible to insert a "today" button in the schedule header, or to configure the date picker to show this option?
  2. Answer
    Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 09 Nov 2015 Link to this post

    Hi Claire,

    In order to achieve the desired you need to modify the default Template of RadScheduleView. You could add the desired "Today" button inside the  Grid named x:Name="ScheduleViewHeader" and bind it to a Command inside the ViewModel that sets the CurrentDate property of RadScheduleView to the desired date.

    We have created a sample project that demonstrates that and you could run and evaluate it - please, notice that Implicit Styles were used.

    Hope this helps.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Claire
    Claire avatar
    24 posts
    Member since:
    Apr 2015

    Posted 09 Nov 2015 in reply to Nasko Link to this post

    That does it, but that seems a lot of xaml to include for a simple button. I still have to get your sample to work with the Office 2013 theme, which, I guess, means I will have to read more about theming.

    Have you considered adding this feature as a built-in option (a "ShowTodayButton" property)?

     

  5. Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 11 Nov 2015 Link to this post

    Hello Claire,

    Currently, this is the only approach that we could suggest you in order to achieve the desired appearance. In order to make it work for Office2013 you could use the exact same approach, however you need to get the Template of RadScheduleView for the Office2013 theme instead for the OfficeBlack.

    If you have any additional questions or concerns regarding Telerik controls, please do not hesitate to contact us.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Claire
    Claire avatar
    24 posts
    Member since:
    Apr 2015

    Posted 11 Nov 2015 in reply to Nasko Link to this post

    That's exactly what I did. Thanks.
Back to Top
UI for WPF is Visual Studio 2017 Ready