Posted 17 July 2018, 3:15 pm EST
As i attached in record, we are using a flexgrid
in this am trying to copy a value form cell and paste
but in cell the value is not show directly,if am double click it show
I have implemented like this for pasted cell, but still its not working
$scope.initialized = function (s) { s.cellEditEnding.addHandler(function (s, e) { setChanged(e.row, e.col); }); s.pastedCell.addHandler(function (s, e) { setChanged(e.row, e.col); }); // utility to keep track of changed items var changes = []; function setChanged(r, c) { if (!getChanged(r, c)) { changes.push({ item: s.rows[r].dataItem, prop: s.columns[c].binding, }); } } function getChanged(r, c) { var cellEdit = false; for (var i = 0; i < changes.length; i++) { var item = s.rows[r].dataItem; var prop = s.columns[c].binding; var ch = changes[i]; if (ch.item == item && ch.prop == prop) { cellEdit = true; console.log(changes) } } return cellEdit; }