Hi all,
Is it possible to hide the Checkbox in a Grid Header? We have a Grid that uses CheckBoxSelectionModel but we need to restrict the user to do a "select all" operation using the Checkbox in the Header.
Thanks a lot!
Printable View
Hi all,
Is it possible to hide the Checkbox in a Grid Header? We have a Grid that uses CheckBoxSelectionModel but we need to restrict the user to do a "select all" operation using the Checkbox in the Header.
Thanks a lot!
There is no buildin way. The checkbox gets shown with css (take a look at it with firebug). You will need to change this css but also you will need to subclass CheckBOxSelectionModel to not selectall on clicking the header.
Thanks, sven. Will try what you suggested.
Sven,
by sub classingCheckBOxSelectionModel the maximun you can do is neutralize the"select all" event but the check box will still be there.
I saw some ways to not show the checkbox by interfering with the css class used but are all in Ext Js forums using methods not supported by ext gwt class.
Yes, this is correct. You need to change two things:
1) The CSS
2) The class to not run the default logic.
Please also see my first reply where i stated this.