Inline editing preSubmit event doesn't capture the correct row 'this'

Inline editing preSubmit event doesn't capture the correct row 'this'

joklbashjoklbash Posts: 4Questions: 2Answers: 0

I'm using inline editor of the grid. In the preSubmit event, as documentation shows, I'm trying to grab 'this' to evaluate the data for validation prior to committing it. I've noticed that 'this' doesn't return the correct row of data. It shows the currently focused row instead of the row that was just edited. So if you're on row 1 and make a change and then click on row 2 to lose focus, 'this' returns a reference to row 2. The params do show the correct reference to row 1.

Is there an easier way to get the data from the row that was just changed or a different event that should be used when inline editing?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    The best way is to use the second parameter to preSubmit - this is the data being passed to the server.

    Colin

  • joklbashjoklbash Posts: 4Questions: 2Answers: 0

    Thanks Colin. I had seen an example using 'this' for client side validation. I can use the 2nd param for what I need.

This discussion has been closed.