Change event is not fired when moving mouse pointer while clicking listitem in ListViewSelectionMode.Single

2 posts, 1 answers
  1. Dirk
    Dirk avatar
    25 posts
    Member since:
    Aug 2013

    Posted 05 Dec 2013 Link to this post


    I use the ListView with the selectable option set to ListViewSelectionMode.Single via MVC Wrapper.
    Clicking on an item and therefore changing selection doesn't fire the change event if I move the mouse (within list item borders) while clicking.

    I think this behaviour can be reproduced by setting selectable option to ListViewSelectionMode.Single at this demo.
     Just click the text and move mouse pointer to hilight the text. The change event si not fired.

    The event is always fired as soon as you set selection mode to ListViewSelectionMode.Multiple.

    Is this a bug?
    Is there a workaround (can't use multiple select)?

    Thanks in advance

  2. Answer
    Dimiter Madjarov
    Dimiter Madjarov avatar
    2123 posts

    Posted 06 Dec 2013 Link to this post

    Hi Dirk,

    By default the ListView won't perform a selection, when the mouse is moved, while clicking the item. The idea behind this is to provide the same user experience on both desktop and mobile devices. Nevertheless there is a configuration option that could be set to override this.
    var list = $("#listView").data("kendoListView");
    list.selectable.userEvents.threshold = 20;

    This option specifies the number of pixels allowed as a moving tolerance, while the selection click is performed. By default it is set to 0.

    I hope this information helps. I wish you a great day!

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top