Hi
We have a requirement to add data from a Listgrid or treegrid (GRID-A)to another treegrid (GRID-B).
We select some records from GRID-A and click on a button "Add Records", this action will add records to GRID-B.
In reference examples there is a example that shows this can be done on listgrid by using "transferSelectedData".
But we tried and found that this does not work if the destination grid is a treegrid.
We tried getting the selected records from GRID-A and called addData on GRID-B
This also did not work and we were not able to see the selected records getting added to GRID-B.
We have a requirement to add data from a Listgrid or treegrid (GRID-A)to another treegrid (GRID-B).
We select some records from GRID-A and click on a button "Add Records", this action will add records to GRID-B.
In reference examples there is a example that shows this can be done on listgrid by using "transferSelectedData".
But we tried and found that this does not work if the destination grid is a treegrid.
We tried getting the selected records from GRID-A and called addData on GRID-B
Code:
GRID-B.addData(GRID-A.getSelectedRecords());
Comment