:: Documentation >>

bottom data

Sets or retrieves the data in the bottom-left corner of the grid control (bottom selector data). Converted to the display text by the bottom format object.

Syntax

var value = obj.getBottomData(); 
obj.setBottomData(value);        

obj.onBottomDataChanging = function(value){...}; 
obj.onBottomDataChanged = function(value){...}; 
obj.onBottomDataError = function(value){...}; 

Defined in

bottom model

Examples

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

obj.setBottomData("<bottom text>");
obj.setBottomFormat(new AW.Formats.String);
obj.setBottomText(function(i){
    var data = this.getBottomData(i);
    var format = this.getBottomFormat(i);
    return format ? format.dataToText(data) : data;
});

Applying number format

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

obj.setBottomData("1234567.890");
obj.setBottomFormat(number);
obj.setBottomText(function(i){
    var data = this.getBottomData(i);
    var format = this.getBottomFormat(i);
    return format ? format.dataToText(data) : data;
});

Remarks

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

See also

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

Comments

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