Author Topic: pq-cell-dirty  (Read 4948 times)

jax

  • Newbie
  • *
  • Posts: 16
    • View Profile
pq-cell-dirty
« on: June 18, 2014, 09:18:06 am »
How do you get the pq-cell-dirty class to be automatically assigned when you edit a cell? I see this class being assigned on the demos, but I have copied and pasted all of the javascript but still the class pq-cell-dirty does not get assigned. Then when I call the following below, isDirty is false even though I have edited one or more cells

            var isDirty = $grid.pqGrid("isDirty");
            if (isDirty) {
« Last Edit: June 18, 2014, 09:41:43 am by jax »

jax

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: pq-cell-dirty
« Reply #1 on: June 18, 2014, 09:52:53 am »
I found that recIndx needs to be set to the PrimaryKey value in order for IsDirty to work.