Title: treeGrid - multiSelect rows only with CTRL or SHIFT key Post by: amir-t on July 30, 2013, 10:06:12 AM Hi,
When enabling the multiSelect in treeGrid, by setting the 'singleSelect' property to "false", The multi selected rows are selected on every 'Left mouse click', instead of just by pressing the CTRL\SHIFT key + Left mouse click. Is there any way to implement the multiSelect in that way? We need a common multiSelect behavior: multi rows will be selected only with CTRL\SHIFT key + Left mouse click, and when pressing the Left mouse click (without holding CTRL\SHIFT key) on some other row - all the selections will be cleared and only the new current row will be selected. I found an example for the required muliSelect behavior, in the following jsFiddle example: http://jsfiddle.net/valchev/QBESY/ Thanks in advance. Title: Re: treeGrid - multiSelect rows only with CTRL or SHIFT key Post by: amir-t on August 05, 2013, 04:28:35 AM Hi, still didn't succeed to fix the multiSelect issue.
I'll appreciate any help. Tnx. Title: Re: treeGrid - multiSelect rows only with CTRL or SHIFT key Post by: stworthy on August 07, 2013, 12:35:31 AM Here is the simple implementation of multiple selection with CTRL key.
Code: var dg = $('#dg'); Title: Re: treeGrid - multiSelect rows only with CTRL or SHIFT key Post by: amir-t on August 07, 2013, 11:41:56 PM Thanks.
Is this implementation is suitable For TreeGrid Component? It seems that this implementation is for dataGrid, i guess its the same code for treeGrid with a bit of changes, but how can i convert to be used with TreeGrid? Title: Re: treeGrid - multiSelect rows only with CTRL or SHIFT key Post by: stworthy on August 08, 2013, 12:38:21 AM For treegrid please try the code below:
Code: var tg = $('#tg'); |