How to hide row "No data available in table"

Mohammad Qasim 576 Reputation points
2020-10-20T10:16:15.817+00:00

Greetings,

Problem: using Sharepoint 2016 ( on prem ) using json binding data into table

table showing message ,"
33430-hidemessage.png

Solution Required : how to hide message

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Mohammad Qasim 576 Reputation points
    2020-10-26T19:34:11.163+00:00

    it works , added after adding records on table

    $('.odd').hide()


1 additional answer

Sort by: Most helpful
  1. Chelsea Wu 6,346 Reputation points Moderator
    2020-10-21T02:32:59.107+00:00

    Please share the code snippet you use so that we can better troubleshoot for you.
    Meanwhile, you may check the posts with similar issue here:
    jQuery DataTables “No Data Available in Table”. / No data available in table using DataTables with AJAX and JSON file.

    As is referred in the posts, try initiating the dataTable after AJAX loaded table is appended on body, see if that is your problem.

    Another sample here: Dynamic HTML Table or Grid from JSON using JQuery in SharePoint.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.