Editor extension: edit and delete not working.

Editor extension: edit and delete not working.

redlum7redlum7 Posts: 2Questions: 2Answers: 0
edited June 2015 in Editor

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

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    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:

    table: "Tartikelen1",

    It should be:

    table: "#Tartikelen1",
    

    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

This discussion has been closed.