View Full Version : How to disable few rows in GXT grid?
14 Dec 2011, 10:47 PM
We have a requirement where on some condition we want to disable some rows.
How to do this in GXT grid?
15 Dec 2011, 9:57 AM
What do you mean with disable?
You can add a custom CellEditor, which doesn't come up on the condition (use BeforeStartEdit event to prevent editing). You can use a GridSelectionModel (use BeforeSelect), which prevents selection of a row. And if you need some visual feedback, you can use a GridCellRenderer, which "disables" the row with a dark background color.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.