Since I purchased the Editor, it doesn't work any more.
Since I purchased the Editor, it doesn't work any more.

Hi
Since I purchased the editor, some things don't work any more
My code code seems to be very simple :
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
ajax : "ajaxserver.php?context=editcontact&userid=<?php echo $_SESSION["userid"]; ?>",
table: "#PartnersTable",
fields: [
{label: "Nom:", name: "Name"},
{label: "Addresse:", name: "Address" },
{label: "Code postal:", name: "CPos" },
{label: "Ville:", name: "City" },
{label: "Téléphone 1:", name: "Phone1" },
{label: "Téléphone 2:", name: "Phone2" },
{label: "Email:", name: "Email" }
]
} );
$('#PartnersTable').DataTable( {
dom: "Bfrtip",
ajax: "ajaxserver.php?action=getcontactlist",
columns: [
{ data: "Name" },
{ data: "UserName" },
{ data: "Address" },
{ data: "CPos" },
{ data: "City" },
{ data: "Phone1" },
{ data: "Phone2" },
{ data: "Email" },
{ data: "Dep" },
{ data: "Status" },
{ data: "RecallDate" }
],
select: true,
buttons: [
{ extend: "edit", editor: editor },
{ extend: "remove", editor: editor }
]
} );
The two things that don't work any more are (at least) :
select: true, ---> doesn't have effect
{ extend: "edit", editor: editor }, -> button doesn't appear
{ extend: "remove", editor: editor } -> button doesn't appear
Please not that :
- The datatable widget works fine, except the "select : true" option
- It worked with the trial version
- I don't have any error message in the console
Can you help me?
Regards.
This discussion has been closed.
Answers
Are you loading the select extension JS?
I don't see anything obvious that would be a problem. Can you post a link to your page or a test case replicating the issue so we can help debug?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
On top of what Kevin said, I suspect you also aren't loading the Buttons library - which would explain why those buttons aren't appearing. If you look at the example here, ensure you have the necessary files listed on the Javascript and CSS tabs beneath the table.
Colin