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

Android radCalendar-MonthView header click

1 Answer 36 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
rincy
Top achievements
Rank 1
rincy asked on 30 Dec 2014, 08:56 AM
Hi,

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

Thanks & Regards,,
Rincy Rose

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 30 Dec 2014, 02:52 PM
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.

 
Tags
Calendar
Asked by
rincy
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or