Hi,
Is there a easier way to copy data from one cell to the rest of the cells of columns after, in the same row?
For now i was doing inside the change event. Whenever a value is changed, i get the
ui.updateList and the values at newRow and rowData and copy the value in newRow to the remaining columns at rowData.
and then $grid.pqGrid("updateRow", { 'rowIndx': updatedRowIndx , row: rowData })
function UpdateColumns( event, ui ) {
let changes = ui.updateList[0];
let rowChange = changes.newRow;
let newRow = changes.rowData;
//get updated cell and loop at newRow changing the value of the other columns
this.updateRow({ 'rowIndx': changes.rowIndx , row: newRow });
}
Update the question with the code because it didn't actually work
Thanks