File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
src/Core/Components/DataGrid/Columns Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 55
66 <FluentStack >
77 <FluentSpacer />
8- <FluentAnchor Appearance =" @Appearance.Hypertext" Href =" " OnClick =" @(e => MessageService.Clear(App.MESSAGES_NOTIFICATION_CENTER) )" >
9- Dismiss all
10- </FluentAnchor >
8+ @if (MessageService .Count (App .MESSAGES_NOTIFICATION_CENTER ) > 0 )
9+ {
10+ <FluentAnchor Appearance =" @Appearance.Hypertext" Href =" #" OnClick =" @(e => MessageService.Clear(App.MESSAGES_NOTIFICATION_CENTER))" >
11+ Dismiss all
12+ </FluentAnchor >
13+ }
1114 </FluentStack >
1215
1316 <br />
Original file line number Diff line number Diff line change 5353 </FluentDataGrid >
5454
5555 <div >
56- <b >Peoples : </b >
56+ <b >People : </b >
5757 @String.Join( " ; " , People .Where (p => p .Selected ).Select (p => p .Name ))
5858 </div >
5959}
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public DataGridSelectMode SelectMode
183183 /// Null is undefined.
184184 /// </summary>
185185 [ Parameter ]
186- public bool ? SelectAll { get ; set ; } = false ;
186+ public bool ? SelectAll { get ; set ; }
187187
188188 /// <summary>
189189 /// Gets or sets the action to be executed when the [All] checkbox is clicked.
@@ -521,10 +521,9 @@ private void RefreshHeaderContent()
521521 /// <summary />
522522 private bool ? GetSelectAll ( )
523523 {
524- // Using SelectedItems only
525524 if ( InternalGridContext != null && ( Grid . Items != null || Grid . ItemsProvider != null ) )
526525 {
527- if ( _selectedItems . Count == 0 )
526+ if ( _selectedItems . Count == 0 && ! InternalGridContext . Items . Any ( Property ) )
528527 {
529528 return false ;
530529 }
You can’t perform that action at this time.
0 commit comments