Grid with multiselect kills all row click handling

2 posts, 0 answers
  1. Allocate Software Internal Systems
    Allocate Software Internal Systems avatar
    13 posts
    Member since:
    Jun 2010

    Posted 12 Jan 2015 Link to this post

    Hi,

    I have a grid template that renders a menu in a grid row so a user can select contextual actions which up until recently has worked great while only allowing users to select single rows. 

    We now need to allow multi-select so switched the feature on.  Selecting multiple rows is working fine but it has killed our menus because the Selectable widget used by the Grid for multi-select prevents all row click events from bubbling up.

    The offending code within the Kendo code base is:

    _select: function(e) {
                var selector = "input,a,textarea,.k-multiselect-wrap,select",
                    msie = kendo.support.browser.msie;
                if ($(e.event.target).is(selector)) {
                    this.userEvents.cancel();
                    this._downTarget = null;
                } else if (!msie || (msie && !$(kendo._activeElement()).is(selector))) {
                    e.preventDefault();
                }
            },

    Although I have not tested it I assume this stops us from having any kind of clickable items with rows when multi select is switched on?

    Does anyone know if there anything I can do as I am going to have to implement a custom multiselect otherwise that doesn't hobble my menus?
  2. Allocate Software Internal Systems
    Allocate Software Internal Systems avatar
    13 posts
    Member since:
    Jun 2010

    Posted 12 Jan 2015 Link to this post

    Just updated to the latest version of the controls and all seems to be sorted.
Back to Top