EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 06, 2024, 11:59:10 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
edatagrid unsaved data notification
Pages: [
1
]
« previous
next »
Print
Author
Topic: edatagrid unsaved data notification (Read 3120 times)
markalves
Newbie
Posts: 15
edatagrid unsaved data notification
«
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
Re: edatagrid unsaved data notification
«
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
Re: edatagrid unsaved data notification
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...