EasyUI Forum
May 16, 2024, 02:24:15 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: Verify uncommited changes before closing a tab  (Read 3241 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« 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


View Profile Email
« 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


View Profile
« Reply #2 on: December 05, 2017, 01:45:46 AM »

It works.
Thanks a lot !

Miche
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!