Author Topic: cellDblClick/pqgridcelldblclick not firing  (Read 4719 times)

mike_matthews_ii

  • Newbie
  • *
  • Posts: 3
    • View Profile
cellDblClick/pqgridcelldblclick not firing
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: cellDblClick/pqgridcelldblclick not firing
« Reply #1 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.

mike_matthews_ii

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: cellDblClick/pqgridcelldblclick not firing
« Reply #2 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: cellDblClick/pqgridcelldblclick not firing
« Reply #3 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.

mike_matthews_ii

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: cellDblClick/pqgridcelldblclick not firing
« Reply #4 on: March 30, 2015, 09:25:07 pm »
never mind, thought i had a workaround...but it was a cached response fluke
« Last Edit: March 30, 2015, 09:53:53 pm by mike_matthews_ii »