SMART datagrid v.1 > Classes > DataColumn
Callback function which returns whether to display the button in corresponding cell location.
You can specify the type of button which will be displayed in data cell by DataColumn.button property, and even if set to display the button, when return false in this callback, the button will not be displayed.
Defaults to null.
var columns = [{
name: 'addr',
button: 'popup',
buttonVisibility: 'always',
buttonDisplayCallback: function (index) {
return index.getValue() !== undefined;
}
},
...
];
grid.setColumns(columns);