Code:
ListGrid lg = new ListGrid(); lg.setDataSource(ds); // ds is set to be ClientOnly(true) lg.setShowFilterEditor(true); lg.setFilterOnKeypress(true); // ..Creating records and placing them in ListGridRecord[] called recordArray lg.setRecords(recordArray);