Disable Default Selection Mode

4 posts, 0 answers
  1. vijay
    vijay avatar
    23 posts
    Member since:
    May 2015

    Posted 18 May 2015 Link to this post

    Hello Telerik,

     

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

     

     

     

  2. Antony Jekov
    Admin
    Antony Jekov avatar
    88 posts

    Posted 20 May 2015 Link to this post

    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
  3. DevCraft banner
  4. vijay
    vijay avatar
    23 posts
    Member since:
    May 2015

    Posted 20 May 2015 in reply to Antony Jekov Link to this post

    it's works!!!

    Thanks Antony

     

  5. Antony Jekov
    Admin
    Antony Jekov avatar
    88 posts

    Posted 21 May 2015 Link to this post

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