Hi,
Here's a grid with CHECKBOX selection style, which adds a checkbox at the start of each row and in the grid header.
When I click the checkbox in the listgrid header (which automatically selects all rows - OK),
then select 1 row in the grid,
the checkbox in the header is still shown as selected (NOK - see screenshot).
When I select another row, the checkbox in the header becomes unselected.
* I was investigating the onSelectionChanged vs onSelectionUpdated event for that checkbox in the header, and thought I didn't get an event from that checkbox, but this test case seems to throw the 2 events fine.
Repro:
	(The selectSingleRecord doesn't affect this behavior.)
TIA,
(sorry, didn't test on latest nightly)
SC_SNAPSHOT-2012-02-28_v8.3d/Pro Deployment (built 2012-02-28)
					Here's a grid with CHECKBOX selection style, which adds a checkbox at the start of each row and in the grid header.
When I click the checkbox in the listgrid header (which automatically selects all rows - OK),
then select 1 row in the grid,
the checkbox in the header is still shown as selected (NOK - see screenshot).
When I select another row, the checkbox in the header becomes unselected.
* I was investigating the onSelectionChanged vs onSelectionUpdated event for that checkbox in the header, and thought I didn't get an event from that checkbox, but this test case seems to throw the 2 events fine.
Repro:
Code:
	
	final ListGrid grid = new ListGrid();
grid.setSelectionAppearance(SelectionAppearance.CHECKBOX); //Set this, and you lose the 'select' function by clicking on the row itself
grid.setSelectionType(SelectionStyle.MULTIPLE);
grid.addCellClickHandler(new CellClickHandler() {
	public void onCellClick(CellClickEvent event) {
		SC.logWarn("onCellClick started");
	}
});
grid.addSelectionChangedHandler(new SelectionChangedHandler() {
	
	public void onSelectionChanged(SelectionEvent event) {
		SC.logWarn("onSelectionChanged started");
	}
});
grid.addSelectionUpdatedHandler(new SelectionUpdatedHandler() {
	
	public void onSelectionUpdated(SelectionUpdatedEvent event) {
		SC.logWarn("onSelectionUpdated started");
	}
});
grid.setWidth(200);
grid.setHeight(200);
String fieldName1 = "a";
String fieldName2 = "b";
ListGridField field1 = new ListGridField(fieldName1);
ListGridField field2 = new ListGridField(fieldName2);
grid.setFields(field1, field2);
ListGridRecord record1 = new ListGridRecord();
record1.setAttribute(fieldName1, "aha1");
record1.setAttribute(fieldName2, "oho1");
ListGridRecord record2 = new ListGridRecord();
record2.setAttribute(fieldName1, "aha2");
record2.setAttribute(fieldName2, "oho2");
grid.setRecords(new ListGridRecord[]{record1, record2});
grid.selectSingleRecord(0); //auto select 1st record
TIA,
(sorry, didn't test on latest nightly)
SC_SNAPSHOT-2012-02-28_v8.3d/Pro Deployment (built 2012-02-28)

Comment