Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to detect empty grid (if no data from REST)

I wonder how to detect empty grid if no data was loaded from REST service.
I've tried this but grid works in different way, it doesn't work...
All I need to do is detect no dat aloaded from REST service via JSON and show message

if( Tiggr("grid_name").is(':visible') )
{
// do some extra operation
}
else
{
Tiggr("label_header").text("There are currently no items to show");
}

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to detect empty grid (if no data from REST)

You check if any data was returned in service's 'success' event. You get passed 'data' argument -- that's the data returned from the server.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to detect empty grid (if no data from REST)

You check if any data was returned in service's 'success' event. You get passed 'data' argument -- that's the data returned from the server.

Return to “Issues”