File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
BlazorBootstrap.Demo.RCL/Components/Pages/Grid/01-Overview
blazorbootstrap/Components/Grid Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11<Grid TItem =" Employee1"
2- Class =" table table-hover table-bordered table-striped"
3- DataProvider =" EmployeesDataProvider"
42 AllowFiltering =" true"
53 AllowPaging =" true"
6- PageSize =" 5"
74 AllowSorting =" true"
85 AllowSelection =" true"
9- SelectionMode =" GridSelectionMode.Multiple"
6+ Class =" table table-hover table-bordered table-striped"
7+ DataProvider =" EmployeesDataProvider"
8+ PageSize =" 5"
9+ Responsive =" true"
10+ RowKeySelector =" (emp) => emp.Id"
1011 SelectedItemsChanged =" OnSelectedItemsChanged"
11- Responsive = " true " >
12+ SelectionMode = " GridSelectionMode.Multiple " >
1213
1314 <GridColumns >
1415 <GridColumn TItem =" Employee1" HeaderText =" Id" PropertyName =" Id" SortKeySelector =" item => item.Id" >
Original file line number Diff line number Diff line change @@ -996,10 +996,14 @@ private void SetFilters(IEnumerable<FilterItem> filterItems)
996996 public Func < TItem , string > ? RowClass { get ; set ; }
997997
998998 /// <summary>
999- /// Gets or sets the row key selector.
1000- /// usage ex.
1001- /// RowKeySelector="context => context.UserId"
999+ /// Gets or sets the function used to extract a unique key from a row item.
10021000 /// </summary>
1001+ /// <remarks>
1002+ /// The key returned by the function is used to uniquely identify each row in the data set. This
1003+ /// is typically required for operations such as tracking changes or rendering rows efficiently.
1004+ /// If not set, the item hash code will be used as the key.
1005+ /// Example usage: `RowKeySelector="(employee) => employee.Id"`.
1006+ /// </remarks>
10031007 [ Parameter ]
10041008 public Func < TItem , object > ? RowKeySelector { get ; set ; }
10051009
You can’t perform that action at this time.
0 commit comments