The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grid Row Selection Behavior
#1
Hi Gintaras,
Thanks for your responses in Bug Reports.
Anyway, I hope you can help with this. I would like to multi-select rows in a grid without using Ctrl to add-to-selection or Shift to extend-selection.
Rather, single left click on any row: if not already selected, then adds to multi-select. If already selected, then unselects that row.
This is kind of how the Windows Explorer works if you hover over the "invisible" check box to the left side of each row. However, if you click on the item itself (farther to the left in the row), it behaves in standard fashion.

I think the problem is that on LMB down, it will always change the single selected item unless ctrl or shift already pressed.
I tried some with giving a simulated click but then I would need to test for already selected to un-select, etc.
I see from these two articles, that the solution may be harder than I thought:

http://www.c-sharpcorner.com/UploadFile ... DROW1.aspx
http://stackoverflow.com/questions/3915 ... ontrol-key

It would be great to have this more intuitive interface without having to have a hard to click check box row.
That reminds me that in this grid, the cells are not editable, so clicking anywhere on the row, causes select event.

Thanks again!!!,
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)