Compare Cell Values when edit is complete ?

Compare Cell Values when edit is complete ?

Tom_TTom_T Posts: 24Questions: 3Answers: 0
edited July 2012 in General
My table has 5 columns and multiple rows.

Currently as I read the data from a database and then write it to screen, I check if the value of 2 variables about to be written into the rows cells match, if they don't I change the background color of 3 cells on the same row.

This process can lead to multiple rows with highlighted cells.

If I then edit one of the cells, so the 2 values on the row do match, I have to refresh the page to remove that rows cells background color.

Is there anyway when I have edited one of the cells to have it automatically check the other to see if the values match and if they do then remove the background color from all 3 cells...

The columnID's are 0, 3 & 5. I'm checking on a row values in columns 3 & 5.

I think that makes sense...

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    What script are you using to do your editing? It might provide a callback that will be of use to you. In Editor the event is onPostEdit and you would be able to run through the table and check if the background colours need to be updated.

    Allan
  • Tom_TTom_T Posts: 24Questions: 3Answers: 0
    I'm assuming it's jquery.jeditable.js, as that's what came in the download !
This discussion has been closed.