You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added virtualization support to treeview
* Replaced a regular html anchor tag with a blazorise Anchor component.
Added the relevant logs to the current changelog's optimization section.
Updated the summary string documentation for the Virtualize Parameter of TreeView
* formating
* Mention default value
* Fix virtualization
* Add Virtualization example
* Don't pass styling parameters further from root element
* Use defaults when Virtualize is enabled
* release notes
* Change description
* Docs notes
* testing treeview virtualize with dynamic data
* Properly fallback to default Height and Overflow values
* Remove extra parenthesis
* Fix duplicate nodes
---------
Co-authored-by: ddjerqq <[email protected]>
Co-authored-by: Mladen Macanovic <[email protected]>
Co-authored-by: Mladen Macanovic <[email protected]>
Co-authored-by: David Moreira <[email protected]>
This example demonstrates how to use virtualization in a Blazorise <CodeTag>TreeView</Code> component to efficiently render large hierarchical data sets. Virtualization improves performance by only rendering the visible nodes in the viewport, rather than all nodes in the tree. This is particularly useful when dealing with large numbers of nodes, as it reduces the DOM size and enhances responsiveness.
166
+
</Paragraph>
167
+
<Paragraph>
168
+
For virtualization to function correctly, it is essential to specify both the <Strong>Height</Strong> and <Strong>Overflow</Strong> properties
169
+
</Paragraph>
170
+
<OrderedList>
171
+
<OrderedListItem>
172
+
<Paragraph>
173
+
<Strong>Height</Strong>: Defines the fixed height of the TreeView component. Without a specified height, the tree would expand indefinitely, defeating the purpose of virtualization since all nodes would be rendered at once.
174
+
</Paragraph>
175
+
</OrderedListItem>
176
+
<OrderedListItem>
177
+
<Paragraph>
178
+
<Strong>Overflow</Strong>: Ensures that the tree's content is scrollable. This scrollable area allows for dynamic loading of nodes as the user scrolls, effectively utilizing virtualization to render only the nodes currently in view.
179
+
</Paragraph>
180
+
</OrderedListItem>
181
+
</OrderedList>
182
+
<Paragraph>
183
+
By default, when <Code>Virtualize</Code> is enabled, we will define <Strong>Height</Strong> and <Strong>Overflow</Strong> for you, if they are not already explicitly defined.
Controls if the child nodes, which are currently not expanded, are visible. See <AnchorTo="https://learn.microsoft.com/en-us/aspnet/core/blazor/components/virtualization">docs for Virtualization</Anchor>.
Copy file name to clipboardExpand all lines: Documentation/Blazorise.Docs/Pages/News/2024-10-15-release-notes-170.razor
+8
Original file line number
Diff line number
Diff line change
@@ -196,6 +196,14 @@
196
196
After our community has convinced us that these parameters are still useful, we have decided to undeprecate them. We have undeprecated the <Code>CellClass</Code> and <Code>CellStyle</Code> parameters in the <Code>DataGridColumn</Code> component. These parameters allow you to define the class and style for the cell based on the cell item value.
197
197
</Paragraph>
198
198
199
+
<HeadingSize="HeadingSize.Is3">
200
+
TreeView Virtualization
201
+
</Heading>
202
+
203
+
<Paragraph>
204
+
We have added the ability to virtualize the TreeView component. This can be useful when you have a large number of nodes and you want to improve the performance of the TreeView component. The virtualization feature allows you to render only the visible nodes, which can significantly reduce the number of DOM elements and improve the overall performance of the TreeView component.
0 commit comments