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.
var value = obj.getBottomData();
obj.setBottomData(value);
obj.onBottomDataChanging = function(value){...};
obj.onBottomDataChanged = function(value){...};
obj.onBottomDataError = function(value){...};
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;
});
Should always be used together with the bottom format object and converter function in the bottom text property (see the examples above).
Overview: using format converters
Grid templates: bottom selector
Bottom model: text, image, tooltip, link, value, format
Data properties: cell, selector, header, footer, top