ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jowliwon on May 05, 2014, 11:38:26 pm

Title: Rows marked for delete?
Post by: jowliwon on May 05, 2014, 11:38:26 pm
Hi again.

As a grid can get tracked for changes width both "add", "update" and "delete". Is it possible to have a row marked for "delete" as it is a change waiting to happen when finally committed?
In other words, have a row still visible as it is set for delete until committed.
Title: Re: Rows marked for delete?
Post by: paramvir on May 06, 2014, 02:26:18 pm
I see your point.

Currently deleteRow doesn't support to keep the row visible.

As a workaround you can use addClass to strike the row instead of call to deleteRow when delete button is clicked. you would need to write more code ( e.g., http://paramquery.com/pro/api#method-getRowsByClass ) to track delete rows as inbuilt tracking functions like isDirty, commit and rollback won't be aware of delete changes done this way.