Hi Isomorphic
I have a requirement where in i should add a record to a listgrid. It should not be saved to database the moment addData() method is called, to add a record. After adding a record user should be able to edit the cells and when i click "save" the newly added record should be saved to database along with other edited old records.
My detailed use case:
1. I have a listgrid. The first column of the listgrid has "+" symbol displayed in each cell.
2. When i click on the "+" symbol, i should add a new record below this record.
3. The newly added record should have "+" symbol displayed in the first cell, the second and third cell values should be same as the values displayed in the above record where i clicked the "+" symbol. And the rest of the cells are blank.
4. I will edit rest of the cells and click on "Save" button to save the record. Now i should be able to insert the newly added record and update the old records if they are edited.
5. I have called "listgrid.addData()" method to add a new record. But it is trying to connect to server, to insert the record into the database.
6. If i remove the operationType="add" tag from my datasource then i get an error "OperationType add is not defined in datasource". This error is because i removed the tag.
How i can achieve this. Please help.
Thanks and regards
Srividhya
I have a requirement where in i should add a record to a listgrid. It should not be saved to database the moment addData() method is called, to add a record. After adding a record user should be able to edit the cells and when i click "save" the newly added record should be saved to database along with other edited old records.
My detailed use case:
1. I have a listgrid. The first column of the listgrid has "+" symbol displayed in each cell.
2. When i click on the "+" symbol, i should add a new record below this record.
3. The newly added record should have "+" symbol displayed in the first cell, the second and third cell values should be same as the values displayed in the above record where i clicked the "+" symbol. And the rest of the cells are blank.
4. I will edit rest of the cells and click on "Save" button to save the record. Now i should be able to insert the newly added record and update the old records if they are edited.
5. I have called "listgrid.addData()" method to add a new record. But it is trying to connect to server, to insert the record into the database.
6. If i remove the operationType="add" tag from my datasource then i get an error "OperationType add is not defined in datasource". This error is because i removed the tag.
How i can achieve this. Please help.
Thanks and regards
Srividhya
Comment