Author Topic: pasteModel for appending/replacing data  (Read 1789 times)

rgkeenan

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 6
    • View Profile
pasteModel for appending/replacing data
« on: September 15, 2017, 05:54:37 pm »
Hi folks,

I'm trying to create a paged grid that provides a blank row at the bottom of the last page.

The blank row should allow users to paste multiple rows, and append new rows to the data.

The grid should also allow users to update data in existing rows if they are pasted into.

The data gets updated for existing rows, but when I paste in new rows, they show up on-screen without being added to the data or changes array.

Any ideas?

I'm using a simple pasteModel:
Code: [Select]
var pasteModel = {
            on: true
        };

rgkeenan

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: pasteModel for appending/replacing data
« Reply #1 on: September 15, 2017, 11:35:18 pm »
Nevermind. Figured it out from documentation. Thanks.

     *  //Format of JSON object returned by 'getChanges' method is as follows:
     *  {
     *      updateList: [row1, row2..]
     *      addList: [row1, row2..]
     *      deleteList: [row1, row2..]
     *  }