Here is the list of actions I am trying to accomplish.
I have a data grid loading from an OData4 endpoint.
When a user selection of a variable changes, I construct the URL used by the DataManager. Updating the URL does NOT trigger a reload of data. Grid.Refresh() does NOT trigger reload of data from remote endpoint.
Currently I force a refresh by updating the Query. I have a Guid Id, so I update the Query to new Query().Where("Id","notequal",Guid.NewGuid())
This does trigger the refresh and brings the records however it seems like a hack. Another problem is that the grid is not cleared and there is now spinner as the data is being fetched and it's a problem, since it may take 2-3 seconds to return the new dataset. I'd like the grid to go back to empty and show a spinner while waiting for data, so that the user is aware of something being done.
What is the proper way to make the grid perform a call to a "new" OData endpoint (I call it new, since part of the url changes to reflect a changed parameter), trigger the call, while clearing the data and showing a spinner? Thanks!