Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid select checkbox question

    In the Smart GWT Showcase example:

    http://www.smartclient.com/smartgwt/showcase/#grid_interaction_checkboxselect

    How can I get the ListGridField column header checkbox to be selected by default? The Showcase example has all checkboxes as unchecked?

    #2
    The header checkbox reflects the current selection within the grid.
    You could call selectAllRecords() on the grid after populating it with data.

    Comment


      #3
      listGrid.selectAllRecords(); had no affect on the top header checkbox? The records in the grid are selected, but not the header checkbox.

      Please advise.

      Comment


        #4
        How can I access the ListGrid column header checkbox to explicitly toggle the value?

        Comment


          #5
          The header should be toggled automatically to reflect the selected state of the data -- once all records are selected it will show up selected, otherwise unselected.
          If this isn't happening for you, can you post a test case? It's working as it should for us.
          If you want explicit control over the header checkbox to indicate some other state, it's probably best to define a separate ListGridField with custom behavior / custom title / custom icon and using the headerClick event, rather than attempting to leverage the existing checkbox field.

          Comment

          Working...
          X