Author Topic: Issue with enableSelection option on grid  (Read 2928 times)

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Issue with enableSelection option on grid
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Issue with enableSelection option on grid
« Reply #1 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
« Last Edit: November 25, 2016, 02:03:25 pm by paramquery »

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Re: Issue with enableSelection option on grid
« Reply #2 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...

ralph1996

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 80
    • View Profile
Re: Issue with enableSelection option on grid
« Reply #3 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.