Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3790
help with updating data.
posted

We are using a alternative method for updates. Instead of using primary key we update the Dom element and then the respective JSON data.

  var text = this.gridIDMap.cellAt( cell.index, cell.rowIndex )
        text.innerHTML = d;

        //update jason
        var data = this.gridIDMap.dataSourceObject();
        data[cell.rowIndex][cell.columnKey] = d

If I then double click on this changed data in the grid cell the old value appears as this was only a copy of the data. To fix that I must do a dataBind() to get my new copy data bound. Unfortunately this dataBind is very slow on our grids? So I was hoping to find a way to update the local directly DATA instead.

Parents
  • 3790
    posted

    Is this permissible because it seems to work?

      var text = this.gridIDMap.cellAt( cell.index, cell.rowIndex )
            text.innerHTML = d;

            //update jason
            this.inIUDiv.igGrid( "option", "dataSource" )[cell.rowIndex][cell.columnKey] = d

Reply Children