Re-Load or Refresh the grid after Modal - Popup is Closed or Save button is clicked

3 posts, 0 answers
  1. Vishnu
    Vishnu avatar
    4 posts
    Member since:
    Sep 2020

    Posted 14 Sep Link to this post

    Blazor : How I can Re-Load or Refresh the grid after Modal - Popup is Closed or Save button is clicked? I am calling the Save Action in Modal-Popup page and not using EventCallback method
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5529 posts

    Posted 15 Sep Link to this post

    Hello Vishnu,

    If you are referring to the built-in popup edit form - the application code must update the view-model with the new data so that it can be reflected in the grid. You can find examples in the PopUp editing documentation.

    In general, if you want to refresh the grid data, there are a couple of standard framework approaches that you can read about in this KB article: Refresh Grid

    On custom modal popups - please review the linked articles from the Important Notes section of the Window documentation. They explain how the window is no longer in the same sibling context and how to update the rest of the comopnents you need an event that will call .StateHasChanged (which is, usually, an EventCallback and if you can't use an EventCallback you should try to, or at least try to invoke StateHasChanged in the context of the component you wish to update).

     

    Regards,
    Marin Bratanov
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

  3. Vishnu
    Vishnu avatar
    4 posts
    Member since:
    Sep 2020

    Posted 15 Sep in reply to Marin Bratanov Link to this post

    Thanks Marin...
Back to Top