Author Topic: Inline edit not working for updates  (Read 1809 times)

Kenneth E Bartlett

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 2
    • View Profile
Inline edit not working for updates
« on: April 20, 2018, 08:39:10 pm »
I have been trying to get the inline edit to work for updates. I can get it to work for add and delete, but not update.  The main difference I see between my configuration and the demo for row editing is I am using local data instead of remote.  I do have the recIndx key added to my dataModel, so it should work, right? I also ensured I have trackModel: {on: true} in my grid options.

I have the update button sucessfully calling the update function, but when I add a console.log(grid.isDirty()) it always reports false and skips the code inside my if(isDirty()) block.

Is there something else I could be missing?  I am using version 5.1.0 of pqGrid and viewing the 5.x demos.

The only javascript I am loading is jQuery (1.12.4), jQuery-ui (1.9.2), pqgrid (5.1.0), and then my javascript file in that order.

Kenneth E Bartlett

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Inline edit not working for updates
« Reply #1 on: April 21, 2018, 03:17:23 am »
I found the issue.  I had incorrectly identified the recIndx object key name.  The key name I gave didn't exist.