public async Task click()
{
var text = await this.tree.GetTreeData(MyFolder[0].Id);
var nodeDetails = await this.tree.GetNode(MyFolder[0].Id);
} |
public async Task click()
{
// Expand all the nodes in TreeView component.
this.tree.ExpandAll();
} |
var text = await this.tree.GetTreeData(“05”); |
public async Task click()
{
// pass the particular child id in check method.
this.check("5");
}
public async Task check( string parentId)
{
if (parentId != null)
{
//Get the nodeDetails of the particular id.
var text = await this.tree.GetTreeData(parentId);
// Fetch the parent id of the particular node.
var parentId1 = text[0].ParentId;
// Add all the Parent Id values in a list.
array.Add(parentId1);
// Pass the parent Id to fetch the corresponding node Parent Id details
this.check(parentId1);
}
// expand all the parent Items in Corresponding Node
this.tree.ExpandAll(array);
} |
<SfButton OnClick="click" Content="selectedNode"></SfButton>
public void click()
{
string[] SelectedNode = new string[] { "3" };
this.tree.SelectedNodes = SelectedNode;
} |