Results 1 to 2 of 2

Thread: select deselect checkbox in grid column header

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    67
    Vote Rating
    0
      0  

    Question select deselect checkbox in grid column header

    it sound like a common problem , so forgive me but i am not able to solve this problem
    i have grid whos first column is checkbox colum having check box in header to select all rows,so what i want is to sync header checkbox with row checkboxes , i want to deselect header checkbox when on of row in grid deselected !

    thank you.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    You can change the header checkbox of a CheckboxSelectionModel by using:
    Code:
    var setHeaderCheckbox: function(checked){
        grid.getView().mainHd.child('.x-grid3-hd-checker')[checked ? 'addClass' : 'removeClass']('x-grid3-hd-checker-on');
    };

Similar Threads

  1. Show a 'select all' checkbox in a column header
    By omermx in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 20 Apr 2012, 7:23 PM
  2. CheckboxSelectionModel deselect column header checkbox
    By ttbgwt in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Sep 2009, 12:46 PM
  3. Checkbox selection model "select/deselect all" header not working
    By scoomey in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 24 Feb 2009, 10:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •