Get Free Trial

Handling empty JSON data

Adam Plumridge asked on February 27, 2019

I am binding flexmonster with JSON data, the data received by API is dynamic JSON. So we have no field definition available in advance.
When pivot load data first time it works good, but when we rebind the control using Pivot.updateData() after applying some filter on API and there is no data in response (empty json array) the UI does not clear old information, where I was expecting control to refresh and show nothing.
Can you please suggest me how I can clear the old information when there is no data in JSON.

1 answer

Iryna Kulchytska Iryna Kulchytska Flexmonster February 28, 2019

Hi Adam,
Thank you for posting your question to the forum.
I have prepared a sample for you:
It illustrates how the updateData() API call can be used to clear old information.
Please let me know if it is helpful for your case.
Kind regards,

Please login or Register to Submit Answer