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

Difference between click on a specific day or day view button

1 Answer 36 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Håkan
Top achievements
Rank 1
Håkan asked on 10 May 2013, 12:45 PM
Hi!

Is there any way I can determine if the user clicks in a specific date in the monthview, of if he just clicked the dayview navigation button in the header?
In both scenarios the VisibleRangeChanged event is fired, and in there I would like to do different things depending on what the user selected.

Regards,
Håkan

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 15 May 2013, 12:23 PM
Hello Håkan,

I am afraid that there is no easy way to determine whether the click comes from the NavigationPanel or from a header in the MonthViewDefinition as the same command is used in both ways. You could customize the TimeRulerItemStyleSelector of the ScheduleView and more specifically the TimeRulerMonthViewItemStyle and TimeRulerMonthViewTodayItemStyle Styles - the button which switches from MonthViewDefinition to DayViewDefinition is placed in their templates. You could replace the command of the button with a custom one with additional logic for determining the source of the click action.

I hope this is helpful.  If you have any issues/questions with the approach, let us know.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Håkan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or