Get the value of the cell when tabbing on the column

Get the value of the cell when tabbing on the column

Leju PalakapillyLeju Palakapilly Posts: 7Questions: 5Answers: 0

I have attached my code here.
http://live.datatables.net/vubayuyi/1/edit
The example won't work because I couldn't include the editor(I have downloaded a copy for trial use).

The issue is I am trying to set the value of Owner Name column depending on the value of Owner Id column.
For this I use the keydown event.

I see many issues.

  1. Doesn't work on existing rows.
  2. Won't work on new rows the first time the data is entered. Works the second time when the cell has focus.

Thanks.

This question has an accepted answers - jump to answer

Answers

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

    I would use the Editor events for that - such as preOpen or preInit - that way you're catching the start of the editing sequence. Those would also work on exiting and new rows (depending on the event),

    Colin

This discussion has been closed.