SMART datagrid v.1 > Classes > ButtonCellRenderer
The property which specifies whether to sort the text based on button image.
If it is true, it will sort the text based on image, and if it is false, it will sort the text based on entire cells.
Defaults to true.
var columns = [{
name: "column1",
renderer: {
type: "button",
textOnImage : false
}
},
...
];
grid.setColumns(columns);
$("#changeAlign").click(function () {
var col = grid.columnByName('column1');
col.setRenderer({
textOnImage : false
});
});