ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: webifi on November 25, 2014, 08:44:19 am

Title: rollback/isDirty issues
Post by: webifi on November 25, 2014, 08:44:19 am
I am mostly following the example here (http://paramquery.com/pro/demos/editing) 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".
Title: Re: rollback/isDirty issues
Post by: paramvir 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.