DataList isn't updating on StateHasChanged #3

Closed
opened 2026-01-29 17:29:58 +00:00 by claunia · 1 comment
Owner

Originally created by @dmarciano on GitHub (Jul 15, 2019).

I'm current using the DataList component to show a list of object. It populates correctly, however if I remove an item from the collection and call StateHasChanged the DataList is not updated. However, if I go to a different page, and then go back to the first page, the item is removed as expected.

Is there a work around to force the DataList automatically update the displayed data without having to page?

Originally created by @dmarciano on GitHub (Jul 15, 2019). I'm current using the DataList component to show a list of object. It populates correctly, however if I remove an item from the collection and call StateHasChanged the DataList is not updated. However, if I go to a different page, and then go back to the first page, the item is removed as expected. Is there a work around to force the DataList automatically update the displayed data without having to page?
Author
Owner

@enchev commented on GitHub (Jul 15, 2019):

You can call Reload() method.

@enchev commented on GitHub (Jul 15, 2019): You can call Reload() method.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3