Revision #4 has been created by Maurizio Domba Cerin on Nov 12, 2012, 11:57:03 AM with the memo:
« previous (#3)
Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. H
ever, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or
clicking on the 'select all' checkbox.
related files (css, img, etc) to /protected/assets/gridview/ or where
ver you want it (if different, be sure to change it in the usage scen
rio). I'm just going to link the whol
efile here: http://pastebin.com/b5t9NdmZ
Your code here...
'disabled' class is hard coded into the modified JS code. For me to add a custom 'disabled' class, I would have to extend CGridView, and to me it just wasn't worth adding a small property for it to be passed into yiigridview.js.