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

Disable Default Selection Mode

3 Answers 46 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.
vijay
Top achievements
Rank 1
vijay asked on 18 May 2015, 11:17 AM

Hello Telerik,

 

I want to show calendar only display mode, not needed any selection mode.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Antony Jekov
Telerik team
answered on 20 May 2015, 10:46 AM
Hi Kumar,

Thank you for writing.

Currently there is no way of disabling the selection using the properties of the calendar. There is a workaround for this by using this code:
class DummySelectionManager extends CalendarSelectionManager {
 
    public DummySelectionManager(RadCalendarView owner) {
        super(owner);
    }
 
    @Override
    public void handleTapGesture(CalendarDayCell calendarCell) {
        //super.handleTapGesture(calendarCell);
    }
}
 Use this to set the selection manager of the calendar like this:
calendarView.setSelectionManager(new DummySelectionManager(calendarView));

I logged this as an issue and it will be implemented for our next release.

Thank you for your time and all best!


Regards,
Antony Jekov
Telerik
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
0
vijay
Top achievements
Rank 1
answered on 21 May 2015, 04:53 AM

it's works!!!

Thanks Antony

 

0
Antony Jekov
Telerik team
answered on 21 May 2015, 08:43 AM
Hi Kumar,

You are very welcome. I will add the missing property as promised for the next release.

Good luck with your project!

Regards,
Antony Jekov
Telerik
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
Tags
Calendar
Asked by
vijay
Top achievements
Rank 1
Answers by
Antony Jekov
Telerik team
vijay
Top achievements
Rank 1
Share this question
or