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

    Hi,

    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
    Admin
    Todor avatar
    778 posts

    Posted 30 Dec 2014 Link to this post

    Hello,

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

    calendarView.setOnTouchListener(new View.OnTouchListener() {
        @Override
        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;
        }
    });


    Regards,
    Todor
    Telerik
     

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