Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Real time updation of igGrid resetting the scroll position
posted

Hi,

We are evaluating the igniteUI for our project and we are using the igGrid.  Additionally, we are using Polymer web components and have 'polymerized' the grid. We populate the data for the igGrid using ajax call which returns the JSON data.  This is set to the grid dataSource.  Once the grid is bound, we also setup a real time update mechanism via web sockets.  So as we receive a message on the websocket, the json object in the message is added to the datasource of the grid and the grid is rebound.  We find that the grid retains its page index etc..however, if we have scrolled down the grid at the time real time update is received, the scroll position gets reset and the grid scrolls back up.

this.gridDataProvider.push(newItem); //The gridDataProvider is the datasource of the igGrid.  We are adding the real time update to it.
$("#gridContainer").igGrid("dataBind");

Similarly, if we are in the process of setting up the Advanced Filter (via the feature chooser) on the grid, the list of columns added to the filter vanishes if a real time update comes in.

Could you please advise if these issues can be handled via some API calls?  Real time updates are very critical for us and form a major part of our POC.

Thanks

Parents Reply Children
No Data