PDA

View Full Version : Disabled Checkbox



saksudesh
28 Aug 2015, 10:50 PM
Hello,
Is it possible to keep few checkboxes on the extjs grid enabled and few disabled
Regards,
Sudesh

joel.watson
29 Aug 2015, 5:25 PM
Hi--

Yes, you could do this by providing a custom renderer for the checkbox selection model. One of the arguments passed to the renderer is the row's record, so you could either render the checkbox (or something entirely different) based on the data in the record:

http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.selection.CheckboxModel-method-renderer

I hope that helps give you a good place to start--thanks!
Joel