EasyUI Forum
November 05, 2025, 04:07:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: easyui.done()  (Read 8445 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: June 02, 2015, 04:32:04 AM »

Is there an event that I can bind to when:

1) All remote Ajax calls have been completed, and the remote data loaded into all objects.
2) All elements and objects on the page have been rendered
3) all input values have been set by form.laod()
4) all onChange() events have been triggered.
5) easyui is 100% completed and idle.

Basically, I need an event that tells me when everything is 100% finished.

Thanks

Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 02, 2015, 07:01:01 PM »

1. When the remote data is loaded, the 'onLoadSuccess' event fires.
2. $.parser.onComplete = function(context){...}
3. Calling the 'load' of form to load field values, the 'onLoadSuccess' event fires.
4. When the form field value is changed, the form's 'onChange' event fires.
5. Normally, $(document).ready() function is always executed after all the easyui components is ready.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: June 02, 2015, 07:09:14 PM »

Thanks, but I am looking for 1 single event that signifies when everything is done, especially when 1 page may have dozens of controls that are making ajax calls etc.

I also have situations where a form load Success() fires yet some of the comboboxes etc values cannot be retrieved so I end up add a lot of setTimeouts() to wait a few hundred milliseconds for everything to load.

What I am really after is 1 event, that 100% guarantees that everything is done, so far I don't seem to be able to get that.

This is never a problem with small, simple page, but when a page has say 10 comboboxes, a datagrid and a tree and a form, all pulling in data via ajax, there are some major timing issues and things don't behave as expected.

If there was a done event, this would be solved.



Logged

-- Licensed User --
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!