javascript - How to update all data in jQuery.dataTables with client-side data? -


I have been unable to get jQuery.dataTables to allow me to update the data in the table using javascript for. I know that this has already been discussed, but I can not do any such solution which I have seen.

I have the parameter named data that represents the data to display in the table. It has been passed in a function.

I have thought that the way to update the data will be like this:

  // I have checked that the new data has returned $ Table.data () after $ Table.data (data) in; // Now the data is updated, redraw the table, the data is updated. $ Table.fnDraw ();  

It does not seem like the above code runs.

Update: What am I doing?

After doing this more careful research, I came to know that I can get the desired result as follows:

  $ table.fnClearTable (); $ Table.fnAddData (data); $ Table.fnDraw (); However, the above problem is that the user loses his place in endorsement and has to navigate back to the page on which he was.   

Well, this issue I had backed up Allen for me High time worked.

Try it out:

Using the new API, you will call the parameter. In the old API, you will use FNDRO similarly (and you can also use the parameter to not make redraws).

I just need to know in the matter.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -