[eluser]Armorfist[/eluser]
[quote author="hehachris~" date="1209591023"]i have made a few changes to make the grid supporting shift-click.
for example,
1, select record 1
2, shift and click on record 5
3, record 1-5 will be selected
changes in the addRowProp function:
Code:
addRowProp: function()
{
var lastSelected;
var rows = $('tbody tr',g.bDiv);
$('tbody tr',g.bDiv).each(function(){
$(this)
.click(function(e){
var obj = (e.target || e.srcElement); if (obj.href || obj.type) return true;
if(e.shiftKey)
{
var last = rows.index(lastSelected);
var first = rows.index(this);
var start = Math.min(first, last);
var end = Math.max(first, last);