Hello all,
I have a question due to I need load more than 9000 records in a SelectItem and I see it is very slow.
I am using RPC and the SmartGWT version is LGPL 2.4. In the client we use Internet Explorer but I have tested Firefox and it is slow as IE.
I do this:
DataSource:
SelectItem:
RPC call
I use Town[] because I have tested List<Town> and is a bit more slow. And I use DataClass and setTestData() because I have realized it is a bit more fast than to create a ListGridRecord for each town.
And yet it is very slow.
My question is:
Is there some property or some other system (json , xml or other) that is faster? Or at least, do not block the browser while loading data.
Thanks for all in advance
I have a question due to I need load more than 9000 records in a SelectItem and I see it is very slow.
I am using RPC and the SmartGWT version is LGPL 2.4. In the client we use Internet Explorer but I have tested Firefox and it is slow as IE.
I do this:
DataSource:
Code:
DataSource dsTowns = new DataSource(); DataSourceIntegerField idtown = new DataSourceIntegerField("id","Id:"); idtown.setPrimaryKey(true); DataSourceTextField nametown = new DataSourceTextField("name","Name:"); dsTowns.setFields(idtown,nametown); dsTowns.setClientOnly(true);
Code:
siTowns.setOptionDataSource(dsTown.getInstance()); siTowns.setDisplayField("name"); siTowns.setValueField("id");
Code:
TownRPCAsync townService = GWT.create(TownRPC.class); townService.findAllTowns(new AsyncCallback<Town[]>{ @Override public void onSuccess(Town[] data){ DataClass[] records = new DataClass[data.length]; for (int i=0; i<data.length; i++){ records[i] = new DataClass(); records[i].setAttribute("id", data[i].getId()); records[i].setAttribute("name", data[i].getName()); } this.setTestData(records); } }
And yet it is very slow.
My question is:
Is there some property or some other system (json , xml or other) that is faster? Or at least, do not block the browser while loading data.
Thanks for all in advance
Comment