You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am attempting to use the DataGridMultiSelectColumn checkboxes exclusively for selection, so that I can use row clicks to toggle detail rows without affecting selection. However, when I click the checkbox, the RowSelectableEventArgs<TItem>.SelectReason is set to DataGridSelectReason.RowClick instead of DataGridSelectReason.MultiSelectClick.
To Reproduce
I created a minimal reproduction (available here) as follows:
Create an ASP.NET hosted Blazor WebAssembly app using the default .NET 6 template.
Minor tweak: I had to add !important to the display: block on NavMenu.razor.css line 60.
Install packages Blazorise.Bootstrap and Blazorise.DataGrid.
Replace the table on the FetchData.razor page with a Blazorise DataGrid, following the "RowSelectable & Multiple Selection" example in the documentation.
My RowSelectableHandler also logs the SelectReason to the browser console.
Then:
Run the project.
Navigate to the "Fetch Data" page.
Open the browser console.
Click a checkbox on one of the rows.
Expected behavior
The row should be selected, and a line should appear in the console stating "SelectReason: MultiSelectClick".
Actual behavior
The row is not selected, and the console states "SelectReason: RowClick".
Additional context
I have tested this in Chrome, Edge, and Firefox, with the same results in each. However, the example in the documentation does work correctly, even when I cloned the repo and ran the documentation project locally.
I am using the following software versions:
Visual Studio 17.0.1
.NET 6; dotnet --version gives 6.0.100
Blazorise 0.9.5.1 (also occurs in 0.9.5.0)
Google Chrome 96.0.4664.45
Microsoft Edge 96.0.1054.34
Mozilla Firefox 94.0.2
Windows 10 21H1 build 19043.1288
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered:
Describe the bug
I am attempting to use the
DataGridMultiSelectColumn
checkboxes exclusively for selection, so that I can use row clicks to toggle detail rows without affecting selection. However, when I click the checkbox, theRowSelectableEventArgs<TItem>.SelectReason
is set toDataGridSelectReason.RowClick
instead ofDataGridSelectReason.MultiSelectClick
.To Reproduce
I created a minimal reproduction (available here) as follows:
!important
to thedisplay: block
onNavMenu.razor.css
line 60.Blazorise.Bootstrap
andBlazorise.DataGrid
.index.html
andProgram.cs
in the client project per the README instructions.FetchData.razor
page with a BlazoriseDataGrid
, following the "RowSelectable & Multiple Selection" example in the documentation.RowSelectableHandler
also logs theSelectReason
to the browser console.Then:
Expected behavior
The row should be selected, and a line should appear in the console stating "SelectReason: MultiSelectClick".
Actual behavior
The row is not selected, and the console states "SelectReason: RowClick".
Additional context
I have tested this in Chrome, Edge, and Firefox, with the same results in each. However, the example in the documentation does work correctly, even when I cloned the repo and ran the documentation project locally.
I am using the following software versions:
dotnet --version
gives 6.0.100Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: