From c92b55dee488bb7c9e3ed902c38b875f0cdad97d Mon Sep 17 00:00:00 2001 From: "David T. Macknet" Date: Fri, 2 Aug 2024 12:28:30 -0700 Subject: [PATCH 1/2] Update simpleGrid.js Line 740, removed: , { extend: 'pdfHtml5', orientation: 'landscape' } Uncaught Cannot extend unknown button type: pdfHtml5 I suspect this is an underlying change to DataTables. --- src/js/simpleGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/simpleGrid.js b/src/js/simpleGrid.js index 4062ae2..4b286f9 100644 --- a/src/js/simpleGrid.js +++ b/src/js/simpleGrid.js @@ -737,7 +737,7 @@ orderClasses: false, pagingType: "full_numbers", buttons: [ - 'colvis', 'copy', 'csv', 'excel', { extend: 'pdfHtml5', orientation: 'landscape' } + 'colvis', 'copy', 'csv', 'excel' ], "columnDefs": [ { From 1c9b063e03df0a6df918ade36090f1d93bc420c0 Mon Sep 17 00:00:00 2001 From: "David T. Macknet" Date: Tue, 31 Dec 2024 14:54:06 -0800 Subject: [PATCH 2/2] Update simpleGrid.js Adding to the search criteria for the dropdowns, as it's failing in some instances - seems to be going with a regular search, wherein it'll pull all words rather than an exact phrase. E.g. "C78 abc 7" and "C78 abc 8" will always return both, as they match 7 and 8, C, and abc. --- src/js/simpleGrid.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/simpleGrid.js b/src/js/simpleGrid.js index 4b286f9..3f3fd85 100644 --- a/src/js/simpleGrid.js +++ b/src/js/simpleGrid.js @@ -781,7 +781,7 @@ var select = $('') .appendTo($(column.footer()).empty()) .on('change', function () { - column.search($(this).val()); + column.search($(this).val(), false, false); if (dataTableOptions.definition.serverSide) { dataTable.ajax.reload(); } else { @@ -800,8 +800,7 @@ $('') .appendTo($(column.footer()).empty()) .on('keyup change', function () { - column.search($(this).val(), false); - + column.search($(this).val(), false, false); if (dataTableOptions.definition.serverSide) { dataTable.ajax.reload(); } else {