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
-
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
-
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.
-
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.
-
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.
-
never mind, thought i had a workaround...but it was a cached response fluke