we have a grid that has relatively low number of the rows, however the elements on the row-bound objects change quite frequently, i.e. price may change few times in a second.
Right now we're reloading the data of the grid once the new data arrives but is very inefficient.
I wanted to find out if there was a way to rerender just the row of the grid which properties had changed.
Thank you for a rapid response. I had a question if you had plans for this functionality in the future? If the bound object refreshes, instead of reloading whole databound collection just to update the updated element?
Additionally, is the binding to observable collection also a possibility in the future? We're considering the data component libraries for blazor and weighing all the pros and cons.
Thank you,
Aleks
Hi, a quick follow-up question on the support for observable collections
ERROR 2023-12-05 08:17:16.3331 [ 48] I.Services.ErrorBoundaryLogger | Unhandled exception has occurred in the application
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.List1.Enumerator.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Radzen.PagedDataBoundComponent1.get_PagedView() at Radzen.Blazor.RadzenDataGrid1.DrawGroupOrDataRows(RenderTreeBuilder builder, IList1 visibleColumns) at Radzen.Blazor.RadzenDataGrid1.<>c__DisplayClass19_0.b__0(RenderTreeBuilder builder)
at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
at Radzen.Blazor.RadzenDataGrid`1.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)