Announcement

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

    Unselect ALL in listgrid via the checkbox header

    Hi,

    Using this code sample:

    Code:
    ListGrid grid = new ListGrid(DataSource.get("sys_configuration"));
    		grid.setAutoFetchData(true);
    		grid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
    		grid.setSelectionType(SelectionStyle.SIMPLE);
    		grid.addSelectionChangedHandler(new SelectionChangedHandler() {
    			
    			@Override
    			public void onSelectionChanged(SelectionEvent event) {
    				System.out.println(event.getSelection().length);
    			}
    		});
    
    		VLayout test = new VLayout();
    		test.setWidth(600);
    		test.setHeight(400);
    		test.addMember(grid);
    		test.draw();
    When I select all the records using the checkbox in the header, and then unselect all the records using the same mechanism, the number of selected records array passed in the SelectionEvent is wrong. If you look in the given test case, I have the following output:

    Code:
    19
    18
    17
    16
    15
    14
    13
    12
    11
    10
    9
    9
    9
    9
    9
    9
    9
    9
    9
    9
    If would have expected to have something going down to 0... ?

    Thanks,
    Thomas

    PS: We have SmartGWT 4.0p

    #2
    We have now made a change to address this issue. Please try the next nightly build, dated Jan 28 or above

    Regards
    Isomorphic Software

    Comment


      #3
      Is this fix also applied in the 4.1d branch ? I just tried and it does not seem to be fixed.

      Many thanks,
      Thomas

      Comment


        #4
        Yes, all fixed are. Make sure you have a recent enough build.

        Comment

        Working...
        X