I have a grid that is automaticly filled with JSON data received from my REST service (used response mapping)
Everything works fine when it returns a result but if the service result returns no data my page keeps on loading (the circle keeps on turning) and nothing happens.
On one of the examples I found out how to set an error message when the query is empty but it doesn't work because the page keeps on loading so he does not show me the page again I only see the turning circle with a grayed out page beneath.
I added the code below on the complete event
if (jqXHR.responseText == "[]"){
Tiggzi("no_records").text("Nothing found");
Tiggzi("no_records").show();
}