Author Topic: Batch Editing - not seeing changes  (Read 4788 times)

bmais

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Batch Editing - not seeing changes
« on: September 27, 2013, 01:19:52 am »
paramquery-2.0.0/pqgrid.dev.js

The fields are marked as changed

"click": function (evt, ui) {
                          debugger;
                          var changes = $addressGrid.pqGrid("getChanges");
                          //send to server
                          //if saved properly then commit
                          $addressGrid.pqGrid("commit");

The debugger shows the changes object, but inside of it the add, edit, delete are all empty.

What am I missing?
Do you have any examples of how this should work?
Thanks,
Bill

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Batch Editing - not seeing changes
« Reply #1 on: September 27, 2013, 01:43:14 am »
Bill

In this example http://paramquery.com/pro/demos/editing you can see the log of add, update and delete all working fine in the console.

Please double check the dataModel.recIndx which should be name of primary key of the record.

Did it help to resolve your issue?

Regards
Paramvir
« Last Edit: September 27, 2013, 10:25:25 am by paramquery »

bmais

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Batch Editing - not seeing changes
« Reply #2 on: September 27, 2013, 09:31:59 pm »
It works now.

It seemed to need both recIndx: and location: "remote"

Thanks