Hi,
We have the following requirements :
1. Need to add a new record to a list grid.
2. Listgrid is not sortable.
3. Need that record to be added just above the last record present in the listgrid and the last record is not fetched from the database initially. It is generated on the fly in the Servlet class.
We have done the following steps for that:
First I'll take the last record and pass that to removeData() and pass the same last record to the addData(), after adding the new Record.
listGrid.removeData(recordLast);
listGrid.addData(newrecord);
listGrid.addData(recordLast);
Since this last record is not there in the database, I can't delete it from the database. So I have a empty remove method in my servlet which just returns the dsResponse.
I tried deleting the last record from the datasoruce, even that is not working.
Please let me know if there is any other way in which I can fit in the new record just above the last record.
Thanks,
Keerthi.
We have the following requirements :
1. Need to add a new record to a list grid.
2. Listgrid is not sortable.
3. Need that record to be added just above the last record present in the listgrid and the last record is not fetched from the database initially. It is generated on the fly in the Servlet class.
We have done the following steps for that:
First I'll take the last record and pass that to removeData() and pass the same last record to the addData(), after adding the new Record.
listGrid.removeData(recordLast);
listGrid.addData(newrecord);
listGrid.addData(recordLast);
Since this last record is not there in the database, I can't delete it from the database. So I have a empty remove method in my servlet which just returns the dsResponse.
I tried deleting the last record from the datasoruce, even that is not working.
Please let me know if there is any other way in which I can fit in the new record just above the last record.
Thanks,
Keerthi.
Comment