Tag Archives: Datagrid

EasyUI Datagrid component getFooterRows method of using the tutorial

The total amount of the project need to obtain aggregated footer, so check EasyUI the datagrid documents found getFooterRows method is used to obtain the footer, then write the following code:
var footers=$('#grid').datagrid('getFooterRows');
var sum=footers.Sum_Money;

But prompted footers.Sum_Money undefined undefined, online search under relevant information, there is no suitable answer, view the source code and found getFooterRows returns an array of all footer, even though only one here in my footer, it will still return an array so try to alert the next footers.length findings suggest that length is 1, then modify the code as follows:

var footers=$('#grid').datagrid('getFooterRows');
var sum=footers[0].Sum_Money;