Author Topic: Rows marked for delete?  (Read 2433 times)

jowliwon

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 10
    • View Profile
Rows marked for delete?
« 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Rows marked for delete?
« Reply #1 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.
« Last Edit: May 06, 2014, 04:17:26 pm by paramquery »