ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: nghiemhd on May 29, 2014, 03:55:15 pm

Title: How to reset value of a cell
Post by: nghiemhd on May 29, 2014, 03:55:15 pm
Hi pqgrid team,

I'm using inline editing feature of pqgrid. When users press tab from the cell that they want to edit, I will display a confirm dialog with yes/no button "Are you sure you want to save?".
If users click "No", I want pqgrid to reset value of that cell to the value before changed. How can I set value for the cell to the old value?

Thank you very much.
Title: Re: How to reset value of a cell
Post by: paramvir on May 29, 2014, 10:44:16 pm
use cellEditKeyDown event ( evt.keyCode == tab ) to display the confirm dialog box.

When users click no call quitEditMode method.
Title: Re: How to reset value of a cell
Post by: nghiemhd on May 30, 2014, 08:37:04 am
Dear team,

I have followed your instruction and it works well. Thank you very much.

Best regards,
Nghiem Hoang