ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: noctrona on February 18, 2014, 01:36:12 pm

Title: Confused with how to save cell value.
Post by: noctrona 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!
Title: Re: Confused with how to save cell value.
Post by: paramvir 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.