This is a migrated thread and some comments may be shown as answers.

Capture Calenday Day Header Clicked Event

2 Answers 45 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Kshamesh
Top achievements
Rank 1
Kshamesh asked on 30 Jul 2012, 12:11 PM
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 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 02 Aug 2012, 06:49 AM
Hi,

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,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kshamesh
Top achievements
Rank 1
answered on 02 Aug 2012, 07:04 AM
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?


Tags
ScheduleView
Asked by
Kshamesh
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Kshamesh
Top achievements
Rank 1
Share this question
or