Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Adding data to TreeGrid from ListGrid or TreeGrid

    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
    Code:
    GRID-B.addData(GRID-A.getSelectedRecords());
    This also did not work and we were not able to see the selected records getting added to GRID-B.

    #2
    transferSelectedData() works between trees as well, as shown in samples. As always, post the obvious relevant information or there's no way to help you:

    1) what errors or warnings, if any, you're receiving, both client and server side

    2) what requests are being issued and what the results are

    3) DataSources for both trees

    4) log output after enabling ResultTree log category

    5) anything else obviously relevant

    Providing this information up front (it's the same set of requests every time) will help speed the process of support.

    Comment

    Working...
    X