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

Grid with multiselect kills all row click handling

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allocate Software Internal Systems
Top achievements
Rank 1
Allocate Software Internal Systems asked on 12 Jan 2015, 09:08 AM
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?

1 Answer, 1 is accepted

Sort by
0
Allocate Software Internal Systems
Top achievements
Rank 1
answered on 12 Jan 2015, 11:00 AM
Just updated to the latest version of the controls and all seems to be sorted.
Tags
Grid
Asked by
Allocate Software Internal Systems
Top achievements
Rank 1
Answers by
Allocate Software Internal Systems
Top achievements
Rank 1
Share this question
or