简体   繁体   English

在编辑模式下GridView Lostfocus

[英]GridView Lostfocus in edit mode

Can anybody let me know how to display a Pop up to confirm if he wants to save the changes ,when a record is in Edit mode in Gridview and user Clicks or tabs away from the row. 当记录在Gridview中处于​​“编辑”模式并且用户单击或离开该行的选项卡时,有人可以让我知道如何显示弹出窗口以确认他是否要保存更改。

Thanks in advance Divya. 在此先感谢Divya。

Hm, from your description I understood that you have automatic saving of changes on grid lostfocus client event? 嗯,根据您的描述,我了解到您已经自动保存了网格丢失焦点客户端事件的更改? because if this is not true, then you don't need dialog to prevent saving, because gridview stays in edit mode until user clicks save or cancel(postback the page), right? 因为如果这不是真的,那么就不需要对话框来阻止保存,因为gridview会一直处于编辑模式,直到用户单击“保存”或“取消”(回发页面),对吗?

So, why then you want that confirmation dialog/popup functionality? 那么,为什么要使用该确认对话框/弹出功能呢?

cheers Marko 欢呼Marko

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM