Author Topic: rollback/isDirty issues  (Read 3405 times)

webifi

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 45
    • View Profile
rollback/isDirty issues
« on: November 25, 2014, 08:44:19 am »
I am mostly following the example here and using an evaluation copy of pqgrid downloaded yesterday.

I'm having trouble getting my code to rollback on cancel or for grid.isDirty() to return true after edits.  Adding new seems to work (the new row disappears when selecting cancel, and isDirty returns true on update), and uses much same code path as edits, so I'm confused as to why edits alone would fail.

I'm setting trackModel: {on: true} and track: true, for good measure. (And have tried them independently.)

Any common mistakes I should look for?

EDIT:
Nevermind.  I finally figured it out.  I typo'd dataModel.recIndx as recIndex.  Gotta remember to drop that "e".
« Last Edit: November 25, 2014, 09:03:29 am by webifi »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: rollback/isDirty issues
« Reply #1 on: November 25, 2014, 09:23:35 am »
Sounds great you have figured out the typo in recIndx.

Just download the latest evaluation copy if you don't want to miss out the new features in recent version which was launched only yesterday.