Android radCalendar-MonthView header click

2 posts, 0 answers
  1. rincy
    rincy avatar
    14 posts
    Member since:
    Nov 2014

    Posted 30 Dec 2014 Link to this post


    I need to show a datepicker on click of header of month calendar view.Header click event is available? 

    Thanks & Regards,,
    Rincy Rose
  2. Todor
    Todor avatar
    773 posts

    Posted 30 Dec 2014 Link to this post


    There is no such event in RadCalendarView, but you can use the following approach:

    calendarView.setOnTouchListener(new View.OnTouchListener() {
        public boolean onTouch(View view, MotionEvent motionEvent) {
            if(motionEvent.getActionMasked() == MotionEvent.ACTION_DOWN &&
                    motionEvent.getY() < ((RadCalendarView) view).getTitleHeight()) {
                // Do whatever you want to do when the calendar's title is pressed...
            return false;


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top