• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 105
  • Last Modified:

DataTable plugin & Rest

I am using the dataTable plugin but when I implement it, when I try to sort, search, etc., my data disappears.
Also, looking at the image below, even though there is data I see this "No data available in table".

Plugin
Any ideas?
0
Isaac
Asked:
Isaac
1 Solution
 
Rainer JeschorCommented:
Hi,
based on the info from the other question, you should avoid adding HTML TR records manually to the HTML DOM, but instead use the DataTables function rows.add() to pass the items from the SharePoint list.
Please see:
http://datatables.net/reference/api/row.add()
or
http://datatables.net/reference/api/rows.add()
Especially the final draw() method after the rows have been added.
HTH
Rainer
0
 
IsaacSharePoint Client Side DeveloperAuthor Commented:
Thanks.  That worked perfectly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now