How to handle empty result from server.
How to handle empty result from server.
Hi,
I am using the sAjaxSource for fetching data from my spring controller which gives a json response.
Although when there is no data the datatable show "Loading......" message.
I read through other posts which suggested to send empty array with "{aaData:[ ]}"..but I am using
"sAjaxDataProp": "" ..so my data property is null.. How do i handle this? I am using the gson library in java.
I am using the sAjaxSource for fetching data from my spring controller which gives a json response.
Although when there is no data the datatable show "Loading......" message.
I read through other posts which suggested to send empty array with "{aaData:[ ]}"..but I am using
"sAjaxDataProp": "" ..so my data property is null.. How do i handle this? I am using the gson library in java.
This discussion has been closed.