ParamQuery grid support forum

General Category => Bug Report => Topic started by: ralph1996 on November 23, 2016, 11:15:31 pm

Title: Issue with enableSelection option on grid
Post by: ralph1996 on November 23, 2016, 11:15:31 pm
We have a couple of issues with the enableSelection option in a non editable grid.  It is possible there is another setting I am missing but cannot find it.

If you click and drag to select text in the grid (within or across cells), pressing the ctrl key clears teh selection.  This makes it impossible to use keyboard shortcuts (ctrl-c) to copy the text.  You can right click and copy - just not perform the operation via the keyboard.

Also - with enableSelection when shift clicking to extend sort to multiple columns text within the grid will get highlighed until the sort is complete and the grid is rendered.  It is visually annoying.

THank you.
Title: Re: Issue with enableSelection option on grid
Post by: paramvir on November 24, 2016, 08:06:04 pm
There is no option named "enableSelection" in the API of grid. Probably you mean by enableSelection() method of jQueryUI which is now deprecated.

If you need to enable native selection of the browser, please use selectionModel.native = true

http://paramquery.com/pro/api#option-selectionModel

I've added an example here: http://paramquery.com/pro/demos/selection_native
Title: Re: Issue with enableSelection option on grid
Post by: ralph1996 on November 29, 2016, 10:58:05 pm
Well I was using the suggestion from this post in your forum:

http://paramquery.com/forum/index.php?topic=1019.msg4984#msg4984

It worked as it does in the jsFiddle that is supplied there, but I had the issues I detailed in my original post. I will try the selectionModel.native to see if that resolves our issues.

Thank you...
Title: Re: Issue with enableSelection option on grid
Post by: ralph1996 on November 29, 2016, 11:06:56 pm
I tried selectionModel.native = true and it resolved the issue with the ctrl-key clearing the slection.  Thank you.

However we are still seeing the flash of text highlighting when shift clicking a column header to add the column for a multi-column sort.  It is particularly noticeable when ctrl-clicking on the first additional column.  After that it may or may not flash the highlight on text in column headers.

This does not hinder the functionality of course, it is just an annoyance.