I want to show 'No Data Available' in ui-Grid 3.0, if the response from the ajax contains empty json data array i.e.;
data = {"data": []};
And now if i do –
$scope.gridOptions.data = data.data;
'No Data Available' must come in ui-Grid.
What is currently happening is that user gets a blank screen if data is empty.
Also how to make it as a default functionality ?
See the plunker here.
Best Solution
You could use a "watermark" (plunker) (updated plunker)
template
CSS
Edit:
to make the .watermark independent from the specific parent size: