Author Topic: cellClick vs cellSelect  (Read 2829 times)

snagaval

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 4
    • View Profile
cellClick vs cellSelect
« on: April 03, 2015, 05:29:54 am »
Hello,

I used cellClick to code some logic around when a cell is being edited; but, when that cell is selected to edit by using the cursor keys, cellClick event is not triggered (this makes sense - as the cell is not clicked); would cellSelect be a better event to code for this? Would you recommend some other event? I am coding things such as highlight some other cells, keep track of the before edit value of the cell etc.

Thanks for you help.

Regards,

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: cellClick vs cellSelect
« Reply #1 on: April 03, 2015, 04:32:49 pm »
editorBegin & cellBeforeSave are more appropriate events, you may choose anyone among these 2 depending upon your requirements.

http://paramquery.com/pro/api#event-editorBegin


editorBegin doesn't necessarily mean that user made changes in the cell as the user may escape out or tab on to another cell editor whereas cellBeforeSave is fired when user make changes in the cell and before committing the edited value to cell.
« Last Edit: April 03, 2015, 04:43:12 pm by paramquery »