Currently, I am in the process of developing an admin panel. While I have successfully loaded data from an Ajax API response into a bootstrap dataTable
, I have encountered issues with the default search and pagination functionalities of the table.
"processing": true,
"serverSide": true
I attempted to initialize the table by using the above code snippet, but unfortunately, it did not rectify the problem.
My question is whether it is possible for the dataTable functionality to work as expected, following the defaults provided by Bootstrap dataTable.
In order to achieve this, I intend to undertake the following steps:
Step1: Create a form with a submit button.
Step2: Upon clicking the submit button, trigger an ajax call to retrieve JSON Data dynamically and populate the dataTable
rows.
Step3:
$("#editable-sample").DataTable({ // what should I do here.});
Problem
The issue currently faced is that although the data is loading onto the page, the search box and pagination features are non-functional.