-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DataGrid] Fix cell height issue and make header really sticky (#3173)
* Fix #3168 * Fix #3171 * - Update Whatsnew -Temporarily add global.json to fix sdk version * Update global.json
- Loading branch information
Showing
9 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/Demo/Shared/Pages/DataGrid/Examples/DataGridTypical.razor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,64 @@ | ||
|
||
@page "/test" | ||
|
||
<style> | ||
.column-header { | ||
border-right: 2px solid; | ||
} | ||
</style> | ||
|
||
|
||
<div style="height: 200px; overflow-y: scroll;"> | ||
<FluentDataGrid DisplayMode="DataGridDisplayMode.Table" TGridItem="Testt" Items="testList.AsQueryable()" GenerateHeader="GenerateHeaderOption.Sticky"> | ||
<TemplateColumn Sortable="true" Title="First Column Header" Align="Align.Center" Width="200px"> | ||
@context.a | ||
</TemplateColumn> | ||
<TemplateColumn Sortable="true" Title="Second Column Header" Align="Align.Center" Width="200px"> | ||
@context.b | ||
</TemplateColumn> | ||
<TemplateColumn Sortable="true" Title="Third Column Header" Align="Align.Center" Width="200px"> | ||
@context.c | ||
</TemplateColumn> | ||
</FluentDataGrid> | ||
</div> | ||
|
||
|
||
@code { | ||
class Testt | ||
{ | ||
public string a = "a"; | ||
public string b = "b"; | ||
public string c = "c"; | ||
} | ||
|
||
private List<Testt> testList = new() | ||
{ | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
new(), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "9.0.101" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters