Hybrid View

  1. #1
    Ext User
    Join Date
    Jul 2009
    Posts
    9
    Vote Rating
    0
    markrgli is on a distinguished road

      0  

    Default 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!

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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.

  3. #3
    Ext User
    Join Date
    Jul 2009
    Posts
    9
    Vote Rating
    0
    markrgli is on a distinguished road

      0  

    Default


    Thanks, sven. Will try what you suggested.
    Mark

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
    diegop is on a distinguished road

      0  

    Default


    Sven,
    by sub classing
    CheckBOxSelectionModel 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.

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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

  1. Hide Grid Header
    By aconran in forum Ext 1.x: Help & Discussion
    Replies: 15
    Last Post: 29 Aug 2013, 10:02 PM
  2. How to invoke show/hide checkbox control from button versus header
    By AndreTheDiminutive in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 30 Dec 2008, 2:14 AM
  3. how to hide select all checkbox in grid header
    By sunil in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 26 Aug 2008, 11:21 AM
  4. Grid header hide
    By seno in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 12 Mar 2007, 11:02 PM

Thread Participants: 2

Tags for this Thread