ShowAsTree Property
Version: Available or changed with runtime version 1.0.
Sets the indentation of rows on a List Page to Tree View. If you enable this property, you can expand or collapse indented rows on a List Page.
Applies to
- Page Group
Property Value
true enables the tree view; otherwise, false. The default is false.
Remarks
To enable the tree view, you must also set the IndentationColumn property. This property specifies an integer data type field in the source table or variable. This field controls which records are indented and by how much.
Optionally, you can set the TreeInitialState property to specify whether the list displays as collapsed or expanded when the list page opens in the client.
Note
When you set this property to true, the IndentationControl property is ignored and the first column on the page is indented.
For more information about how to use this property, see Designing Indented Hierarchy Lists.
Example
repeater(Control1)
{
IndentationColumn = Indent;
ShowAsTree = true;
TreeInitialState = CollapseAll;
field("No."; "No.")
{
}
...
See Also
IndentationColumn Property
TreeInitialState Property
IndentationControl Property
Properties
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈