We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Row selection - InvalidOperationException: Nullable object must have a value

Hi,

in version 20.4.0.44 of the components I got this error while selecting one row of the grid template:

Error: System.InvalidOperationException: Nullable object must have a value.
at Syncfusion.Blazor.Grids.Internal.Selection`1.SelectByRow(Row`1 rowToSelect, MouseAndKeyArgs evt)
at Syncfusion.Blazor.Grids.Internal.Selection`1.ValidateRowSelectionClick(Row`1 row, MouseAndKeyArgs e)
at Syncfusion.Blazor.Grids.Internal.Selection`1.RowSelectionClickHandler(MouseAndKeyArgs e, ValueTuple`3 target)
at Syncfusion.Blazor.Grids.Internal.Selection`1.ClickHandler(MouseEventArgs e, ValueTuple`3 target)
at Syncfusion.Blazor.Grids.Internal.GridCellBase`1.CellClickHandler(MouseEventArgs e, Boolean IsCheckBox)
at Syncfusion.Blazor.Grids.Internal.GridCell`1.b__0_6(MouseEventArgs e)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)


Version 20.3.0.56 of the component works fine without errors.

The problem can be replicated easly using the first documentation example of the Detail Template with this only update at the beginning:

<SfGrid DataSource="@Employees" AllowSelection="true">
    <GridSelectionSettings Type="SelectionType.Multiple"></GridSelectionSettings>

....


Any suggestion? Is it a breaking change?


Thank you.

Regards,

Matteo Rampado


2 Replies

MS Monisha Saravanan Syncfusion Team January 27, 2023 03:41 AM UTC

Hi Matteo,

Sorry for the inconvenience that you have experienced with our product. We understand the importance of a stable and reliable product for your business, and we take your concerns very seriously.


We have already considered it as a breaking issue and fixed the issue  “Exception occurs when selecting a record.” for the same. Thank you for taking the time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fix all validated defects (subject to technological feasibility and Product Development Life Cycle) and the fix will be included in the upcoming weekly patch release by the first week of February or in the Volume 4 SP.


We will inform you once the fix has been published. We appreciate your patience until then. You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.       


https://www.syncfusion.com/feedback/40556/exception-occur-when-selecting-a-record-with-details-template


Regards,
Monisha




MS Monisha Saravanan Syncfusion Team February 2, 2023 02:16 PM UTC

Hi Matteo,

We are glad to announce that our Essential Studio 2022 patch Release v20.4.0.48 is rolled out and is available for download under the following link and we have included fix for the issue   “Exception occurs when selecting a record.” in our patch release (20.4.0.48).


NuGet : https://www.nuget.org/packages/Syncfusion.Blazor.Grid


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Regards,
Monisha


Loader.
Up arrow icon