Retain Scheduler Selection on Lost Focus

3 posts, 0 answers
  1. Trevor
    Trevor avatar
    8 posts
    Member since:
    Apr 2013

    Posted 13 May 2015 Link to this post

    Whenever you click anywhere outside of the scheduler the selected cells are deselected (the k-state-selected class is removed). I want to keep the selection until a new one is made. Can anyone help me out with this?

    Thanks

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2196 posts

    Posted 14 May 2015 Link to this post

    Hi Trevor,

    Basically the Scheduler selection includes keyboard navigation which requires widget to be focused in order to work correctly. That why the widget listens on "focus" events and removes the selection when the widget is no longer the focused element. This behavior cannot be prevented out of of the box and custom solution would be needed.
    For example you can attach custom "focusout" handler to the widget element and on each trigger to apply the selection manually (achieving this however would require using private methods of the widget).

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Trevor
    Trevor avatar
    8 posts
    Member since:
    Apr 2013

    Posted 14 May 2015 Link to this post

    Hi Vladimir,

    I attached to the focusout handler as suggested and was able to manually handle it. Thanks for the suggestion.

Back to Top