Hello,
I have an issue that I don't quite understand. For the data to be collected from the server for the Grid data manager, I need to pass with it an authenticator as a header. Using the WebApiAdaptor works fine, but the disadvantage is that I don't have access to functionalities like (sort/filter/search / etc ..) on the client-side.
So, as I searched, I found the grid / the adaptor has an offline mode. However, when I use it, the query/header that was supposed to be passed as well is "removed". In other words, I receive null in my back end.
And if I only remove the "attribute: offline" from the data manager, the query is passed over again.
I tried to init the query in OnInit, in the constructor, in the declaration sector.
Nothing, I keep receiving an empty header.
hope to hear from you at the earliest.
I have just discovered that I could pass the query along with the DataManager initialization, however, as per the WebAPI adaptor rule, it requires data in a form of an "array of data" and "count".
Based on that, and even though the discovery made the server return the data correctly, however, it's not displayed in the grid, and I get an error as so "TypeError: data manager.dataSource.JSON.slice is not a function"
I found this link that may or may not resolve my issue, but I don't understand what's more needed as I provided exactly that. [ Count and Resul ]
https://www.syncfusion.com/feedback/5537/grid-offline-mode-not-working-for-me
Below is how data returned just as It was instructed, and note, it works when it's not offline. Therefore what changed?
Update:
I solved the issue after doing another extensive research, as it turns out, WebApiAdaptor doesn't need the data under the "result and count" form when the mode is offline, it will require only the data in JSON.
However, I've noticed that the Group filter doesn't work anymore,
and it keeps showing the grid loading but nothing comes of it.
Although, when I tested this functionality, worked perfectly fine when the data was local.
How, do you suggest this may be solved?