Capture Calenday Day Header Clicked Event

3 posts, 0 answers
  1. Kshamesh
    Kshamesh avatar
    16 posts
    Member since:
    Aug 2012

    Posted 30 Jul 2012 Link to this post

    Hello there!

    I display the schedule view only in Month view and I have requirement to open a another view when user clicks on any of the day cell header. Which event is triggered? I also want to understand which date's header is clicked so I can process it further.

    Any help in this regard would be greatly appreciated!
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 02 Aug 2012 Link to this post


    In order to edit this you need to change the template of the ScheduleView. You could generate the whole style of the control very easy with Expression Blend. Just drop a ScheduleView control on the design surface, right-click it and choose from the menu Edit Template->Edit a Copy.
    Then search within the template for a RadButton with set command: RadScheduleViewCommands.SetDayViewMode. This is the header you are refering to - you could change everything you need. The VisibleRangeChanged event is fired, because the view is changed.

    Hope this information helps.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Kshamesh
    Kshamesh avatar
    16 posts
    Member since:
    Aug 2012

    Posted 02 Aug 2012 Link to this post

    Thank you Konstantina for your help! I will definitely follow approach suggest by you.
    I think VisibleRangeChanged will not fired since I am not changing the view, ScheduleView is displayed only in MonthView.
    Can I replace RadScheduleViewCommands.SetDayViewMode with my own custom Command?

    In addition to this I have another question,
    I have a DateTime collection in my viewmodel, I want to display a icon in the day header if it is present in DateTime collection.
    Otherwise Icon will not be displayed for that day if it is not present in DateTime collection.
    What would be the best approach to achieve this?

Back to Top