Comments 2maevapn started the conversationMarch 5, 2018 at 9:20pmFor small datasets, front-end sorting and filtering is much faster without server-side processing. Hence it would be nice to be able to set server-side processing to activate automatically for tables once they pass a certain number of rows. 1,667Miloš repliedMarch 6, 2018 at 10:34amHi maevapn,Thank you for your purchase.In file:wp-content/plugins/wpdatatables/source/class.wpdatatable.php around line1888 you can find this code if (count($res_dataRows) > 2000) { $this->enableServerProcessing(); }In this case when the table have more that 2000 rows the server side processing will turn on, so you can change that number to your desire.Best regards.Kind Regards, Miloš Jovanović[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 2maevapn repliedMarch 6, 2018 at 11:35amThanks, Bogdan. I got it to work.You meant to say "you can add this code" rather than "you can find this code". That line number is bound to change. For future reference, let's add that the code needs to be placed above where it says: // Sending the array to arrayBasedConstructreturn $this->arrayBasedConstruct($res_dataRows, $odtParameters);I guess there's no hook nearby to make the change update-proof?Maybe one could be added in the future. 1,667Miloš repliedMarch 6, 2018 at 12:38pmHI maevapn,You should have this line of code in the file below. Can you please tell me which version of our plugin do you use.Unfortunately there is not hook that I can suggest you for now, but if you have any idea or suggestion do not hesitate to write here.Best regards.Kind Regards, Miloš Jovanović[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables 2maevapn repliedMarch 9, 2018 at 12:07pmVersion 2.1 1,667Miloš repliedMarch 11, 2018 at 8:30pmHi maevapn,Can you please send me here that file so I can take a look.Best regards.Kind Regards, Miloš Jovanović[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
For small datasets, front-end sorting and filtering is much faster without server-side processing. Hence it would be nice to be able to set server-side processing to activate automatically for tables once they pass a certain number of rows.
Hi maevapn,
Thank you for your purchase.
In file:
wp-content/plugins/wpdatatables/source/class.wpdatatable.php around line1888 you can find this code
In this case when the table have more that 2000 rows the server side processing will turn on, so you can change that number to your desire.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks, Bogdan. I got it to work.
You meant to say "you can add this code" rather than "you can find this code".
That line number is bound to change. For future reference, let's add that the code needs to be placed above where it says:
I guess there's no hook nearby to make the change update-proof?
Maybe one could be added in the future.
HI maevapn,
You should have this line of code in the file below. Can you please tell me which version of our plugin do you use.
Unfortunately there is not hook that I can suggest you for now, but if you have any idea or suggestion do not hesitate to write here.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Version 2.1
Hi maevapn,
Can you please send me here that file so I can take a look.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables