PDA

View Full Version : How to prevent hiding grid row editor when click cancel button there data is dirty



gyfang
30 Oct 2014, 5:56 AM
Hi all,
First, I am sorry for poor enlish.
I created a grid with row editor.I want to show confirm dialog after clicking row editor's "cancel" button there data is dirty. If "No" button in confirm dialog is clicked, prevents row editor hiding.
Can you tell me how to implements it? Extjs version is 4.1.3.
Any help would be much appreciated.

fang

scottmartin
2 Nov 2014, 8:05 PM
See if this helps:
https://fiddle.sencha.com/#fiddle/97j

gyfang
3 Nov 2014, 6:03 PM
Thank you for you code.
But I want to show confirm dialog after clicking row editor's "cancel" button not "update" button, and row editor would not be hidden.