Author Topic: Based on some value in one column update another column's text value  (Read 2159 times)

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
 cellSave: function (evt, ui) {
             
                if (ui.dataIndx === 'Validation') {
                               $grid.pqGrid("updateRow", { rowIndx: ui.rowIndx, row: { 'TargetedList': 'Private'}});
                }
           
            }

I have not included checking condition in code. But gist is :

if validation column  cell value is changed to 'Fail', I would like 'TargetedList' column current row's cell to be updated to 'Private', But it not working with above code.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Based on some value in one column update another column's text value
« Reply #1 on: June 07, 2017, 10:42:36 pm »
Your code looks fine unless you have misspelled some field name or $grid doesn't point to related grid.

Please share a jsfiddle if you want me to look into it.
« Last Edit: June 07, 2017, 11:04:38 pm by paramquery »