Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

proper way to deal with null data returned in server-side search processing

$
0
0

Sometimes in MS SQL, I can't (or don't want to) send back a properly-formatted string, such as {"data":[]}, when there is no data to return. Sometimes, if I do, I might send this {"data":null} or this []. DT will recognize that, and say, "No matching records found".

So, if I don't send anything back, is there some way inside of DT for me to tell it, "Hey, there's no records" if the structure is missing?

OR, does DT always expect some sort of structure, even when there are no records? (Some of the SQL queries are really hard to do)


Viewing all articles
Browse latest Browse all 2364

Trending Articles