ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: mike_matthews_ii on March 27, 2015, 01:12:44 am

Title: cellDblClick/pqgridcelldblclick not firing
Post by: mike_matthews_ii on March 27, 2015, 01:12:44 am
To be clear, the single click works just fine; but as you might guess, that's not the right user experience for my grid control.

As an example, I have used both of these:
$grid.on("pqgridcelldblclick", function () { window.location = '/Comments/Details/' + ui.dataModel.data[ui.rowIndx][0]; });
$("#grid_parts").pqGrid({
   cellDblClick: function (e, ui) { window.location = '/Comments/Details/' + ui.dataModel.data[ui.rowIndx][0]; }
});

If I replace the Double Click for the Single Click, then I get events to fire for the Single click...so, I'm confident I have followed the API documentation correctly.  But I get no errors; and nothing shows up in the Console or Debugger to alert me to any issues.  It simply doesn't work.

Anyone know what might fix this?

Thanks
Title: Re: cellDblClick/pqgridcelldblclick not firing
Post by: paramvir on March 27, 2015, 10:39:10 am
it works fine, please check this example: http://jsfiddle.net/bphnecvm/120/

you have to use editModel: {clicksToEdit: 2} or editable: false, otherwise the cell goes into edit mode before 2nd click.
Title: Re: cellDblClick/pqgridcelldblclick not firing
Post by: mike_matthews_ii on March 27, 2015, 07:26:29 pm
the options I have set are:
numberCell: '',
scrollModel: '',
oddRowsHighlight: 'true',
editable: '',
clicksToEdit: '',
flexWidth: 'true',
flexHeight: 'true',
bottomVisible: 'true'

To update, this only happens on the bottom record.  If I have three records, the first two get the double click event but the third only receives the single click or else nothing.
Title: Re: cellDblClick/pqgridcelldblclick not firing
Post by: paramvir on March 27, 2015, 10:32:24 pm
That is a known issue in basic version 1.1.3.

I would apply fix in the code and let you know when it's available.
Title: Re: cellDblClick/pqgridcelldblclick not firing
Post by: mike_matthews_ii on March 30, 2015, 09:25:07 pm
never mind, thought i had a workaround...but it was a cached response fluke