Is there an event to know if the user scrolled to another month?

Thread is closed for posting
2 posts, 0 answers
  1. Fabio
    Fabio avatar
    20 posts
    Member since:
    Apr 2015

    Posted 16 Jun 2015 Link to this post


     I want to know if there is an event to tell if the user scrolled to another month. I am trying to use this event:


    1.protected override void OnScrollChanged (int l, int t, int oldl, int oldt)
    3.    base.OnScrollChanged (l, t, oldl, oldt);

    But I am not sure If I am in the correct way.

    Is there an event that tells me on which month I am currently in?

  2. Todor
    Todor avatar
    798 posts

    Posted 19 Jun 2015 Link to this post

    Hello Fabio,

    Yes, you use set an IOnDisplayDateChangedListener implementation by using calendar's SetOnDisplayDateChangedListener:

    calendarView.SetOnDisplayDateChangedListener (new MyDisplayDateChangedListener());

    Here MyDisplayDateChangedListener is a simple implementation of the IOnDisplayDateChangedListener. Here's an example:

    class MyDisplayDateChangedListener : Java.Lang.Object, Com.Telerik.Widget.Calendar.RadCalendarView.IOnDisplayDateChangedListener {
        public void OnDisplayDateChanged (long oldDate, long newDate)
            GregorianCalendar calendar = new GregorianCalendar ();
            calendar.TimeInMillis = newDate;
            String newMonth = new SimpleDateFormat("MMMM").Format(calendar.Time);

    I hope this helps.

    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
Back to Top