Ticket T889455
Visible to All Users

DataGrid for Blazor - How to refresh the detail grid

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T815632: Data Grid for Blazor - How to refresh DxDataGrid after changing its data source]

This work on my master grid but don't work in my detail grid. It refresh the detail grid if I click on the the next row in my master grid and go back to the row of the detail grid.

Show previous comments (5)

    Thanks

    AS AS
    Andrzej Skolniak 5 years ago

      Hi,

      I encountered this problem recently and found that when we bind a data source synchronously with Data, the grid responds correctly if the source collection is modified (e.g. when we remove elements from a list), but it does not respond if the collection is replaced by a new instance. I had an IEnumerable returned from a service, so I got a new instance every time and refreshing didn't work.
      The solution was either to bind the grid to the list and clear and re-fill the same list before refreshing the grid, or to use an asynchronous data source that works without this problem.

      Best regards,
      Andrzej

      Vova (DevExpress Support) 5 years ago

        Hello Andrzej,

        Thank you for sharing your results with us! I'm sure this will be helpful for our users that encounter the same issue.

        Regards,
        Vova

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.