Author Topic: Confused with how to save cell value.  (Read 3077 times)

noctrona

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 82
    • View Profile
Confused with how to save cell value.
« on: February 18, 2014, 01:36:12 pm »
Hi,

I saw some demo for paramquery, and I also try some of them by myself. And as I test, we need to set "editModel" for grid to decide how to edit cell and save cell value.
Under the "Inline Editing" - "Custom Editing" demo I found when I edit a cell the cell value can save when I click other cell. But I can only achieve save cell value by the following code(set ascii code of custom key)

Code: [Select]
editModel: { clicksToEdit: 2, saveKey: 13}
So how to achieve save cell value when I click other cell?

Thank you!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Confused with how to save cell value.
« Reply #1 on: February 18, 2014, 08:41:04 pm »
You can save an editor cell with this method.

http://paramquery.com/api#method-saveEditCell

You might need to link this method with editor blur event or quitEditMode event.