Be sure your post includes:
I have a ListGrid which is bound to Datasource with JSON format. The data to be displayed in the ListGrid is fetched from a servlet which writes the JSON string to the HTTPResponse.
We use the server push technology provided by SmartGWT.
When a data is inserted in the back end, the new data is sent to the UI. We create a new ListGridRecord with the data and insert the record to the ListGrid.
We have tried the following approaches, but is not working
- ListGrid.addData(record)
- ListGrid.getDataSource().add(record)
- ListGrid.getResultSet().add(record)
- ListGrid.setData(record[]) (this removes existing records and inserts new ones)
I do not want to query server again and fetch the data. So the new record insertion has to be done on client side.
Can anyone please suggest a solution for the problem i am facing..
Thanks in advance
I have a ListGrid which is bound to Datasource with JSON format. The data to be displayed in the ListGrid is fetched from a servlet which writes the JSON string to the HTTPResponse.
We use the server push technology provided by SmartGWT.
When a data is inserted in the back end, the new data is sent to the UI. We create a new ListGridRecord with the data and insert the record to the ListGrid.
We have tried the following approaches, but is not working
- ListGrid.addData(record)
- ListGrid.getDataSource().add(record)
- ListGrid.getResultSet().add(record)
- ListGrid.setData(record[]) (this removes existing records and inserts new ones)
I do not want to query server again and fetch the data. So the new record insertion has to be done on client side.
Can anyone please suggest a solution for the problem i am facing..
Thanks in advance
Comment