How to use the API to force the table to redraw?
How to use the API to force the table to redraw?

I have two elements input type=date on the form. I use them to determine the period for which data is selected in the table. How do I get a table to send an Ajax request to redraw after changing the date interval?
This discussion has been closed.
Answers
Hi @izumov ,
ajax.reload()
will request new data.Cheers,
Colin
The overload of the table if you change the date I implemented the following code
function ChangeDate(){
var table=$('#orders').Datatables();
StartDate=document.getElementById('StartDate').Value;
EndDate=document.getElementById('EndDate').Value;
table.ajax.reload();
}
Did I do everything right?
If it works, I'd say so...