Editor adds 'id' column; how do I prevent this?
Editor adds 'id' column; how do I prevent this?
I just started using Editor yesterday, and generated some sample code with Generator. My js/table.name.js and php/table.name.php files both show only the fields I specified in Generator, but DT appears to be adding the ID row. Is there any way to override this and specify one of the fields I'm using as the row identifier instead?
This discussion has been closed.
Replies
http://editor.datatables.net/docs/current/php/class-DataTables.Editor.html#_pkey
Or the third parameter in the constructor (which is default `id` ):
http://editor.datatables.net/docs/current/php/class-DataTables.Editor.html#___construct
Regards,
Allan
-John