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
50
What is the best way to load a new set of data into the grid?
posted

Within our application, users can navigate to different records without having to reload the web page; we just populate the data in all of the UI elements with the requested record's information.

The problem that we are having with the angular grid is that the user has to mouse over the grid in order to see the updated changes, which is not intuitive.

We have tried using the internal method refreshGridState and that does cause the data to reload, but it also has a nasty side effect of losing all of the column configuration (i.e. captions, visible, etc).

The grid is bound to a simple data array, which we picked up from the samples, but I strongly suspect this is not the correct approach for our scenario.

Is there a recommendation on a better approach to this? Is there anything else that we need to be aware of with this approach (i.e. clearing transactions?) (we already clear row selections and filters before assigning to the data array).

Parents
No Data
Reply
  • 740
    Offline posted

    Hello Karl,

    Thank you for contacting Infragistics Community!

    I believe you will find the following sample I have prepared for you very helpful. As you can observe the grid automatically reflects the changes when its data source is dynamically switched.

    If this sample is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.

    Looking forward to hearing from you.

    Best Regards,
    Martin Evtimov
    Associate Software Developer
    Infragistics, Inc.

Children