File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
examples/Demo/Shared/Pages/DataGrid/Examples
src/Core/Components/DataGrid/Columns Expand file tree Collapse file tree 2 files changed +3
-4
lines changed 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