Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / How to reload igx grid when data is changed programmatically

How to reload igx grid when data is changed programmatically

New Discussion
Amruta Sawle
Amruta Sawle asked on Nov 21, 2021 3:03 PM

I want to reload/refresh grid data. I am changing data in ts programmatically but it is not showing on UI Immediately. 
But when I click or scroll the grid, the changed data is shown.

Sign In to post a reply

Replies

  • 0
    Riva Ivanova
    Riva Ivanova answered on Nov 8, 2021 2:42 PM

    Hello Amruta Sawle,

    Thank you for posting to Infragistics Community!

    I have been looking at your question and I have created a small sample trying to reproduce the described behaviour. I am using IgxGrid and on button click I am changing the data source of the grid. On my side everything works as expected and the data is changed immediately.

    However, since I was not sure when and how you are changing the data on your side, if the attached sample is not an accurate demonstration of what you are trying to achieve, I could suggest calling the igx-grid detectChanges method

    this.grid.cdr.detectChanges();

    or declaring a ChangeDetectorRef property in the component constructor and call its detectChanges method.

    Here could be found my sample for your reference. Please test it on your side and let me know if you need any further assistance.

    If this is not an accurate demonstration of what you are trying to achieve, please feel free to modify it and send it back to me along with steps to reproduce.

    Looking forward to hearing from you.

     

    Regards,
    Riva Ivanova
    Entry Level Software Developer
    Infragistics, Inc.

  • 0
    Godswill Solomon
    Godswill Solomon answered on Nov 21, 2021 3:03 PM

    I'm facing this same problem. I really appreciate the effort of whoever will aid.

    Thanks

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Amruta Sawle
Favorites
0
Replies
2
Created On
Nov 21, 2021
Last Post
4 years, 3 months ago

Suggested Discussions

Created by

Created on

Nov 21, 2021 3:03 PM

Last activity on

Feb 16, 2026 9:15 PM