Hi
I have list grid constructed like below. The problem we are facing is when we call listgrid.selectAllRecords() method - it selects all the records but does not check header checkbox.
It works fine with user interaction. I mean when user click on header checkbox - it select all records/deselect all records.
Any suggestion?
I have list grid constructed like below. The problem we are facing is when we call listgrid.selectAllRecords() method - it selects all the records but does not check header checkbox.
It works fine with user interaction. I mean when user click on header checkbox - it select all records/deselect all records.
Code:
ListGridField[] listGridFields = new ListGridField[1]; listGridFields[0] = new ListGridField("value"); listGridFields[0].setCanGroupBy(Boolean.FALSE); listGridFields[0].setCanHide(Boolean.FALSE); listGridFields[0].setCanFreeze(Boolean.FALSE); listGrid = new ListGrid(); listGrid.setHeight100(); listGrid.setAlternateRecordStyles(Boolean.TRUE); listGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX); listGrid.setAutoFetchData(Boolean.FALSE); listGrid.setFields(listGridFields);
Comment