hello!,i have a problem with listgrid!
ListGrid grid = new ListGrid();
ListGridFiedl field = new ListGridField(“id”,“id”);
grid.setFields(field);
ListGridRecord record = new ListGridRecord();
record.setAttribute(“id”,1);
grid.setData(new ListGridRecord{record});
I want fetch all data in grid! but i do not find a method to do!
ho to fetch data in grid!
thank you !
sjivan
2
Try ListGrid.getRecords
This is in one of the recent nightly builds.
Sanjiv
how to get all data in listGrid without dataSource
thanks!
but ListGrid has not getRecords() method.
it has getRecord(int recordNum).
so,i can’t sure the recordNum
Again, you need to grab a recent nightly build.
I pulled the latest nightly from http://smartgwt.build.rorschach.de/revision.207/ but ListGrid’s getRecords() doesn’t work for me.
On the other hand getRecord(int recordNum) does work, which it didn’t when using 1.0b2-SNAPSHOT.
Should I expect getRecords() to work?