Re: Using DataTable with Drag and Drop: Part II
- One more thing! I implimented this code in my application. You'll
recognize the parts that I carried over from your example. I figured
that the invoice example on your site could, like my application,
benefit from an extra step which would check the see if you've
modified to quantity to 0 and, if so, delete that row from the invoice.
I was proud of myself for coming up with this (don't laugh) so I
thought I'd share it with you.
if (oArgs.editor.cell.innerHTML == 0)
row = this.getTrEl(oArgs.editor.cell);
record = this.getRecord(row);