Results 1 to 2 of 2

Thread: How to add "SelectAll" feature to ColumnHeader "Resubmit" to select all CheckBoxes?

  1. #1
    Ext GWT Premium Member
    Join Date
    Sep 2011
    Location
    Bangalore, INDIA
    Posts
    8
    Vote Rating
    0
      0  

    Default How to add "SelectAll" feature to ColumnHeader "Resubmit" to select all CheckBoxes?

    I am displaying data from Database. Every record contain CheckBox. The name of the Column Header of CheckBox is "Resubmit".
    CheckColumnConfig checkColumn = new CheckColumnConfig("reSubmit", "Resubmit", 75);

    I don't want to use CheckBoxSelectionModel because it shows Checkbox as a ColumnHeader instead of FieldName "Resubmit".

    How to add "SelectAll" feature to ColumnHeader "Resubmit" to select all CheckBoxes?


    Thanks in Advance !!!

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60
    Vote Rating
    131
      0  

    Default

    You could listen to the HeaderClick event that gets fired by the grid. If the column index is the one of your CheckColumnConfig, you could mark them all as checked.

    Take a look at the CheckBoxSelectionModel how to listen to the HeaderClick event.

Posting Permissions

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