EasyUI Forum
September 14, 2025, 03:17:46 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: event after get but before load  (Read 11862 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: March 18, 2012, 10:24:55 PM »

Hi;

With controls like the tree which has it's own axaj load function via supplied url etc, is it possible to have an event which fires after the data has been retrieved but before the data is loaded into the control elements Huh

I would like to do some processing of the data after retrieval but before it's actually loaded to the control's data elements.

Thanks

Logged

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


View Profile Email
« Reply #1 on: March 19, 2012, 07:19:41 PM »

Maybe the 'loadFilter' option is what you want. This feature will be integrated into next version, download the plugin from http://www.jeasyui.com/easyui/plugins/jquery.tree.js
The usage is same as the datagrid:

Code:
$('#tt').tree({
loadFilter:function(data,parent){
  if (data.d){
    return data.d;
  } else {
    return data;
  }
}
});
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!