Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datagrid: MultiSelect | ShiftClick Feature #2151

Merged
merged 26 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1923db4
Update releases.md
stsrki Mar 5, 2021
f50458f
Update SUPPORTERS.md
stsrki Mar 9, 2021
35a986b
Remove dotnet.myget sources
stsrki Mar 9, 2021
1f00263
Add Static Files to DataGrid docs
stsrki Mar 11, 2021
f115cd6
Add Static Files section to RTE docs
stsrki Mar 11, 2021
9cbbdbf
Update richtextedit.md
stsrki Mar 11, 2021
25c3899
Update datagrid.md
stsrki Mar 11, 2021
2817bb1
Update SUPPORTERS.md
stsrki Mar 16, 2021
c706092
0.9.3.1 release notes
stsrki Mar 17, 2021
0db1b26
0.9.3.2 release notes
stsrki Mar 22, 2021
6fae916
0.9.3.3 release notes
stsrki Mar 26, 2021
78cb621
Update SUPPORTERS.md
stsrki Mar 26, 2021
aa3b8e7
Update SUPPORTERS.md
stsrki Mar 27, 2021
6cb62b0
Datagrid: MultiSelect | ShiftClick Feature
David-Moreira Apr 2, 2021
c75ab18
Merge branch 'dev094' into dev094-datagrid-multiselect-shiftClickFeature
stsrki Apr 6, 2021
b8d1584
Small optimizations
stsrki Apr 6, 2021
df54611
0.9.3.4 release notes
stsrki Apr 7, 2021
2f6ed83
Merge branch 'dev094-datagrid-multiselect-shiftClickFeature' of https…
David-Moreira Apr 7, 2021
83a6850
Method name fix
David-Moreira Apr 7, 2021
f98090f
Checked State Fix | It now only looks at Row Selected State instead o…
David-Moreira Apr 7, 2021
6736f7d
Merge branch 'dev094' into dev094-datagrid-multiselect-shiftClickFeature
stsrki Apr 9, 2021
596f8f6
Merge branch 'dev094' into dev094-datagrid-multiselect-shiftClickFeature
stsrki Apr 14, 2021
f0699b7
Able to handle constant row click
David-Moreira Apr 14, 2021
6890fec
Do not unselect SelectedRow when shift clicking an already multiselec…
David-Moreira Apr 14, 2021
fe93562
Merge branch 'dev094' into dev094-datagrid-multiselect-shiftClickFeature
stsrki Apr 15, 2021
1b99228
Fomating
stsrki Apr 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Demos/Blazorise.Demo/Pages/Tests/DataGridPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@
<SelectItem TValue="string" Value="@("D")">Diverse</SelectItem>
</Select>
</FilterTemplate>
@code{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the hell was this doing here? Did I merge this in? xDD

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be accidentally merged from my own testings. I tend to throw it randomly like that but this time it slipped unnoticed.


}
<DisplayTemplate>
@{
var gender = ( context as Employee )?.Gender;
Expand Down
4 changes: 1 addition & 3 deletions Source/Extensions/Blazorise.DataGrid/_DataGridRow.razor.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#region Using directives

using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Blazorise.Extensions;
using Microsoft.AspNetCore.Components;

#endregion

namespace Blazorise.DataGrid
Expand Down Expand Up @@ -91,7 +89,7 @@ private async Task HandleSingleSelectClick( BLMouseEventArgs eventArgs )
{
await Selected.InvokeAsync( default );
}
else if ( !eventArgs.ShiftKey
else if ( !eventArgs.ShiftKey
&& ParentDataGrid.MultiSelect
&& ParentDataGrid.SelectedRows != null
&& ParentDataGrid.SelectedRows.Any( x => x.IsEqual( Item ) ) )
Expand Down