ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: mshapiro on June 12, 2015, 04:49:21 am

Title: isDirty on Column Values?
Post by: mshapiro on June 12, 2015, 04:49:21 am
When using trackModel is it possible to check which column values on a "dirty" row have caused the row to become dirty?  I have a grid with editable and non-editable columns.  If a row is dirty only because a value in a non-editable column has changed then I want to ignore that row and not include it in what I am sending back to the server.  Can this be done with IsDirty or some other method?  Thanks.
Title: Re: isDirty on Column Values?
Post by: paramvir on June 12, 2015, 04:41:33 pm
yes, it's possible to check which cells are dirty in a row from name of properties in oldRow in JSON data returned from call to

getChanges ( { format: 'raw' } )

//Format of JSON object returned by this method is as below:           
{
    updateList: [ { rowData: rowData, oldRow: oldRow },... ]   
    addList: [ ]   
    deleteList: [ ]
}
Title: Re: isDirty on Column Values?
Post by: mshapiro on June 15, 2015, 10:08:11 pm
Thank you, this is what I was looking for.