-
14 Oct 2010 1:12 AM #1
Hide Checkbox in Grid Header
Hide Checkbox in Grid Header
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!
-
14 Oct 2010 1:55 AM #2
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.
-
15 Oct 2010 2:39 AM #3
-
10 Jul 2012 3:47 AM #4
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.
-
11 Jul 2012 2:55 AM #5
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.
Similar Threads
-
Hide Grid Header
By aconran in forum Ext 1.x: Help & DiscussionReplies: 14Last Post: 31 Jan 2013, 6:28 AM -
How to invoke show/hide checkbox control from button versus header
By AndreTheDiminutive in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 30 Dec 2008, 2:14 AM -
how to hide select all checkbox in grid header
By sunil in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 26 Aug 2008, 11:21 AM -
Grid header hide
By seno in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 12 Mar 2007, 11:02 PM


Reply With Quote