Editor extension: edit and delete not working.
Editor extension: edit and delete not working.
Hello, im new to DataTables and i'm am getting two errors. Using firebug they look like this:
For edit:
TypeError: data is undefined
return data[mSource];
For Delete:
TypeError: d is undefined
return d.DT_RowId !== undefined ?
Also when i press new fill somethign in and confirm the box stays? is this normal or do i need to change a parameter? [b]EDIT:[/b] I just checked this and it seems to be due to an error which is as follows:
TypeError: dt.settings(...)[0] is undefined
return dt.settings()[0].oFeatures.bServerSide;
the link to my project is:
http://www.3dincorporated.nl/orion/artikelen.php
I hope that this is enough information and that someone can help me out. i tried searching the forums but couldn't find it. Are there eny general debugging tips?
thanks in advance.
Answers
Hi,
Thanks for the link - I would never have found the problem without it!
The issue is with this line of code in the Editor initialisation:
It should be:
The reason being is that
table
expects a jQuery reference to the DataTable node - so it needs to be the ID identifier in this case.Regards,
Allan