SMART datagrid v.1 > Classes > RowIndicator
The name of Image List which contains the images displayed in each state in state cell of RowIndicator.
You should Register the specified image list in grid in advance.
Defaults to null.
// Register image list in grid,
grid.registerImageList({
name: 'stateIcons',
root: "/repo/grid/resource/images/",
items: [
'data_created.png',
'data_updated.png',
'data_deleted.png'
]
});
// Set image list, and set image icon in style of each state.
grdMain.setRowIndicator({
stateImageList: "stateIcons",
createdStyles: {
iconIndex: '0'
},
updatedStyles: {
iconIndex: '1'
},
deletedStyles: {
iconIndex: '2'
}
});