View Full Version : how to set background color to entire row of a grid?
suresh22446688
17 May 2012, 4:54 AM
Hi,
I am using editable grid. how can i set the background color to entire row(not to individual cells)?
Thanks!
Ersmarker
17 May 2012, 5:29 AM
You can style each row with GridViewConfig.
grid.getView().setViewConfig(new GridViewConfig() {
public String getRowStyle(ModelData model, int rowIndex, ListStore<ModelData> ds) {
return "my-row-style"; // Your css style with your background color.
}
});
suresh22446688
17 May 2012, 9:43 PM
Thanks for your reply.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.