EasyUI Forum
September 19, 2025, 06:55:42 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: treegrid : summary by group (or node)  (Read 6502 times)
korenanzo
Guest
« on: February 22, 2016, 10:11:16 AM »

Hi,

Is it possible to sum rows a nd show the result in the parent node?

I mean, if we take this as example,



in Wyoming, 2009/1st qrt. I'd like to have "6000" and so on.

If it is possible,then  should I prepare the summary data or there is an automagic summarizer?

thanks, RIk
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: February 22, 2016, 05:41:44 PM »

You can prepare the summary data on your server side. Another way to solve this issue is to use the 'loadFilter' function to sum the data before loading it, or update these summary rows after loaded data successfully.
Code:
$('#tg').treegrid({
loadFilter: function(data){
...
return newdata;
},
onLoadSuccess: function(){
//...
}
})
Logged
korenanzo
Guest
« Reply #2 on: February 23, 2016, 02:11:09 AM »

thanks,
RIc
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!