:: Documentation >>

footer data

Sets or retrieves the data in the grid footer row (footer data). Converted to the display text by the footer format object.

Syntax

var value = obj.getFooterData(); 
obj.setFooterData(value);        

obj.onFooterDataChanging = function(value){...}; 
obj.onFooterDataChanged = function(value){...}; 
obj.onFooterDataError = function(value){...}; 

Defined in

footer model

Examples

Encoding html control characters (<, >, ", &).

obj.setFooterVisible(true);
obj.setFooterData("<bottom text>", 0);
obj.setFooterFormat(new AW.Formats.String, 0);
obj.setFooterText(function(i){
    var data = this.getFooterData(i);
    var format = this.getFooterFormat(i);
    return format ? format.dataToText(data) : data;
});

Applying number format

var number = new AW.Formats.Number;
number.setTextFormat("$ #,###.##");

obj.setFooterVisible(true);
obj.setFooterData("1234567.890", 0);
obj.setFooterFormat(number, 0);
obj.setFooterText(function(i){
    var data = this.getFooterData(i);
    var format = this.getFooterFormat(i);
    return format ? format.dataToText(data) : data;
});

Remarks

Should always be used together with the footer format object and converter function in the footer text property (see the examples above).

See also

Overview: using format converters
Grid templates: footer
Footer model: text, image, tooltip, link, value, format
Data properties: cell, selector, header, top, bottom

Comments

How to sum the third column and put the summary into footer? Kevin (6)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5