Difference between click on a specific day or day view button

2 posts, 1 answers
  1. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 10 May 2013 Link to this post


    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.

  2. Answer
    Yana avatar
    4547 posts

    Posted 15 May 2013 Link to this post

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

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top