From 5431d8fa29d4e796fcbe3a2f359536aa3cd33402 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 4 May 2021 09:36:28 +0000 Subject: [PATCH] PageResize: Working with server-side processing DD-89 https://datatables.net/forums/discussion/49057/page-resize-and-server-side-processing-initial-draw#latest --- features/pageResize/dataTables.pageResize.js | 2 +- features/pageResize/serverSide.html | 124 +++++++++++++++++++ 2 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 features/pageResize/serverSide.html diff --git a/features/pageResize/dataTables.pageResize.js b/features/pageResize/dataTables.pageResize.js index a63ee24..9ee8fe3 100644 --- a/features/pageResize/dataTables.pageResize.js +++ b/features/pageResize/dataTables.pageResize.js @@ -171,7 +171,7 @@ $.fn.dataTable.PageResize = PageResize; $.fn.DataTable.PageResize = PageResize; // Automatic initialisation listener -$(document).on( 'init.dt', function ( e, settings ) { +$(document).on( 'preInit.dt', function ( e, settings ) { if ( e.namespace !== 'dt' ) { return; } diff --git a/features/pageResize/serverSide.html b/features/pageResize/serverSide.html new file mode 100644 index 0000000..caa7af1 --- /dev/null +++ b/features/pageResize/serverSide.html @@ -0,0 +1,124 @@ + + + + + + DataTables page resize example + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NamePositionOfficeAgeStart dateSalary
NamePositionOfficeAgeStart dateSalary
Loading...
+ +
Click and drag me!
+
+ +
+ + \ No newline at end of file