Skip to content

Commit

Permalink
Docs : DataGrid Virtualize Example | Set a fixed row height (Megabit#…
Browse files Browse the repository at this point in the history
…5151)

* Docs : DataGrid Virtualize Example | Set a fixed row height

* Update Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Examples/DataGridVirtualizeExample.razor

* Update Documentation/Blazorise.Docs/Models/Snippets.generated.cs

---------

Co-authored-by: Mladen Macanović <[email protected]>
  • Loading branch information
David-Moreira and stsrki authored Nov 25, 2023
1 parent 1563b4f commit ab21ac0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/Blazorise.Docs/Models/Snippets.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7803,6 +7803,7 @@ public void CheckName( ValidatorEventArgs validationArgs )
Data=""@employeeList""
@bind-SelectedRow=""@selectedEmployee""
Responsive
RowStyling='(x,y ) => y.Style = ""height: 70px;""'
Virtualize
VirtualizeOptions=""@(new() { DataGridHeight = ""250px""})"">
<DataGridCommandColumn />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<span class="htmlAttributeName">Data</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>employeeList</span><span class="quot">&quot;</span>
<span class="htmlAttributeName"><span class="atSign">&#64;</span>bind-SelectedRow</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>selectedEmployee</span><span class="quot">&quot;</span>
<span class="htmlAttributeName">Responsive</span>
<span class="htmlAttributeName">RowStyling</span><span class="htmlOperator">=</span><span class="htmlAttributeValue">&#39;(x,y ) =&gt; y.Style = &quot;height: 70px;&quot;&#39;</span>
<span class="htmlAttributeName">Virtualize</span>
<span class="htmlAttributeName">VirtualizeOptions</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="htmlAttributeValue"><span class="atSign">&#64;</span>(new() { DataGridHeight = &quot;250px&quot;})</span><span class="quot">&quot;</span><span class="htmlTagDelimiter">&gt;</span>
<span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">DataGridCommandColumn</span> <span class="htmlTagDelimiter">/&gt;</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Data="@employeeList"
@bind-SelectedRow="@selectedEmployee"
Responsive
RowStyling='(x,y ) => y.Style = "height: 70px;"'
Virtualize
VirtualizeOptions="@(new() { DataGridHeight = "250px"})">
<DataGridCommandColumn />
Expand Down

0 comments on commit ab21ac0

Please sign in to comment.