Showing posts with label grid. Show all posts
Showing posts with label grid. Show all posts

Tuesday, February 11, 2014

The way to highlite grid's selected rows in GXT v2

public void colorLockedGridRows() {
Grid grid = gridView.getGrid();
ListStore<BeanModel> store = grid.getStore();

for (BeanModel model : store.getModels()) {
SecurityGroupVO bean = model.getBean();
if ( bean.isLocked() ) {
Element row = grid.getView().getRow(model);
row.addClassName("locked-row-background-color");
}
}
}