ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: nebels on June 13, 2015, 06:46:34 am
-
We are using batch editing - and about to write a validator that pops up a warning when the currently data which has just been entered is a non unique within the column. Our uniqueness check should also check against any unsaved changes (in the current batch editing session).
$this.pqGrid("getData") seems to return the original data - what's the trick to get hold of data that includes unsaved changes?
-
'getChanges' method should help solve your problem:
http://paramquery.com/pro/api#method-getChanges (http://paramquery.com/pro/api#method-getChanges)
-
Thanks for your quick reply.
Just to make sure that I understand your suggestion; in order to get hold of the data currently displayed in the grid (containing all changes) I have to merge the result from getData() and getChange() first together. This is not a problem, but rather onerous ....
-
getData() alone is sufficient for your use case to get unique values currently displayed ( which includes uncommitted changes in current batch session ) in a column.