Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

4
Votes

Hi,
DataGrid throws below exception when there is a single row after applying filters and editing that row results in filtering out all rows.


Steps to replicate the exception:
-- Filter grid so that there is only one row remaining.
-- Edit that row so that it does not fit to filter and no visible rows remain 

Error: Sequence contains no elements

at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at Syncfusion.Blazor.Grids.SfGrid`1.SelectRowAsync(Double index, Nullable`1 isToggle)
at Syncfusion.Blazor.Grids.SfGrid`1.SelectRow(Double index, Nullable`1 isToggle)
at Syncfusion.Blazor.Grids.Internal.Edit`1.EndEdit()
at Syncfusion.Blazor.Grids.SfGrid`1.EndEditAsync()
at Syncfusion.Blazor.Grids.SfGrid`1.EndEdit()
at Syncfusion.Blazor.Grids.Internal.GridCellBase`1.CommandClickHandler(GridCommandColumn column)
at Syncfusion.Blazor.Grids.Internal.NormalEdit`1.<>c__DisplayClass0_1.<<BuildRenderTree>b__6>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.Buttons.SfButton.OnClickHandler(MouseEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Can you please check

Regards