EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 02:24:15 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
>
Verify uncommited changes before closing a tab
Pages: [
1
]
« previous
next »
Print
Author
Topic: Verify uncommited changes before closing a tab (Read 3241 times)
rezzonico
Full Member
Posts: 183
Verify uncommited changes before closing a tab
«
on:
December 04, 2017, 01:16:55 PM »
Hi all,
I have a tab. In the tab there is a form.
In the form there are some fields and a datagrid.
If a user close the tab I want to verify if there are uncommited changes.
For the datagrid I can use "getChanges", but how can I verify if the user has modified the others fields in the form ?
Thanks for any help
Miche
«
Last Edit: December 04, 2017, 01:20:48 PM by rezzonico
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Verify uncommited changes before closing a tab
«
Reply #1 on:
December 04, 2017, 06:18:46 PM »
The form has the 'onChange' event that will be triggered when a field is changed. Listen to this event to detect whether the user change the form values.
Logged
rezzonico
Full Member
Posts: 183
Re: Verify uncommited changes before closing a tab
«
Reply #2 on:
December 05, 2017, 01:45:46 AM »
It works.
Thanks a lot !
Miche
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...