EasyUI Forum
May 06, 2024, 11:59:10 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: edatagrid unsaved data notification  (Read 3120 times)
markalves
Newbie
*
Posts: 15


View Profile
« on: September 02, 2019, 08:37:19 AM »

Hi to all,
I use edatagrid as a subform, I would like to know if there is a way to notificate the user if there are unsaved rows in edatagrid (i.e. added rows without click save button)...is it possible ?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: September 03, 2019, 02:30:12 AM »

Retrieve the 'editIndex' value to detect if there is a unsaved row.
Code:
var editIndex = $('#dg').edatagrid('options').editIndex;
if (editIndex >= 0){
  //...
}
Logged
markalves
Newbie
*
Posts: 15


View Profile
« Reply #2 on: September 03, 2019, 07:23:16 AM »

Thank you very much this worked but there is a way to launch the save action from an external(from edatagrid)  button ?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!