We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SfTreeView.EnsureVisibleAsync is not working

I would like to make sure that my treeview is showing the correct item in the left-hand navigation (using a SfTreeView) that matches the detail shown on the right. The SfTreeView control datasource is a two-level deep hierarchy, but only the first node of the hierarchy is opened after rendering (even though the node exists and is a child of the second parent node).

    protected override void OnAfterRender(bool firstRender)
var node = ItemsTreeView.GetNode($"/build/{SelectedNodeType}/{Id}");

2 Replies

SA SureshRajan Alagarsamy Syncfusion Team December 12, 2022 04:39 PM UTC

Hi Philipp,

Greetings from Syncfusion support.

We have validated your query from our end by preparing TreeView sample.  We can replicate your reported issue and consider it as a bug from our end. The fix for this issue will be included in our patch release on January 03, 2023.

Feedback Link

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


IL Indhumathy Loganathan Syncfusion Team January 6, 2023 07:40 AM UTC

Hi Philipp,

We are glad to announce that our patch release (V20.4.42) has been rolled out successfully. The reported “EnsureVisibleAsync function is not working when passing the required node id as a parameter” have been resolved in this release. To access this fix, we suggest you update the package to 20.4.42 and we include the sample in the latest version for your reference.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TreeView738535172

Feedback: https://www.syncfusion.com/feedback/39735/ensurevisibleasync-function-is-not-working-when-passing-the-required-node-id-as-a

Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.4.42?type=all#treeview


Indhumathy L

Live Chat Icon For mobile
Up arrow icon