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

Cant unload TreeMenuItems


In my software I have a menu and a submenu. I fill in as follows:

    For Each dr As DataRow In ds.Tables("VERPRO_NEWSLETTERS_CAT").Rows
            Dim x As New Syncfusion.Windows.Forms.Tools.TreeMenuItem
            x.Text = dr.Item("Descricao").ToString
            x.Font = Fonte
            x.SelectedColor = Color.FromArgb(0, 169, 172)
            x.SelectedItemForeColor = Color.White

            Dim da As New OleDbDataAdapter("Select * FROM VERPRO_NEWSLETTERS where fam like'" & dr.Item(1).ToString & "'", cnAdoNetConexao)

            da.Fill(dsRow, "VERPRO_NEWSLETTERS")

            For Each dr2 As DataRow In dsRow.Tables("VERPRO_NEWSLETTERS").Rows
                Dim x2 As New Syncfusion.Windows.Forms.Tools.TreeMenuItem
                x2.Text = dr2.Item(3).ToString
                x2.Font = Fonte2
                x2.SelectedColor = Color.FromArgb(0, 169, 172)
                x2.SelectedItemForeColor = Color.White


When the user clicks on a button, it loads again with other items.

My problem is when the user is in the submenu, it doesn't go back to the beginning. It gets stuck the "x2" TreeMenuItem filled.

Best Regards,

5 Replies

GS Gokul Sainarayanan Syncfusion Team December 3, 2019 12:52 PM UTC

Hi Tiago,

Thank you for contacting Syncfusion support.

We have checked your reported query in TreeNavigator. Based on the provided information, we have added the items in TreeNavigator and also added item at run time through a button but we were unable to reproduce the issue as the we could navigate back and forth in the TreeNavigator. We have attached the sample below with which we tried to reproduce the issue. Can you please check and let us know whether we have missed any settings or have we misunderstood your query as it will help us to further proceed with this.

Sample: https://www.syncfusion.com/downloads/support/forum/149596/ze/TreeNavigator232924169  

Gokul S

TI Tiago December 3, 2019 06:22 PM UTC

Hi Gokul,

First of all thanks for your help. 

I send your example with my problem.

You can notice my problem in the following order:

Click button2
Click ItemMenu1
Click button3

Notice that the childs remains, and wont reset the treenavigator.

Best Resgards,

Tiago Marques

Attachment: TreeNavigator232924169REV_a682dd9.zip

GS Gokul Sainarayanan Syncfusion Team December 4, 2019 09:04 AM UTC

Hi Tiago,

Thanks for your update.

We were able to reproduce the reported issue and notice that the child items are not cleared properly and hence the option to navigate in the TreeNavigator is also disappeared. We have logged a bug report on this and it can be tracked through our feedback portal below.

Feedback Link: https://www.syncfusion.com/feedback/10567/child-items-are-not-properly-cleared-in-treenavigator-when-clear-the-items-in-run
We will fix the reported issue and will provide you a patch in version by December 20, 2019. Incase if you are using a different version, then please let us know so that we will be able to provide the patch in that version.

Gokul S

GS Gokul Sainarayanan Syncfusion Team December 20, 2019 01:40 PM UTC

Hi Tiago,

The issue with "Child items are not properly cleared in TreeNavigator when clear the items in run time" has been fixed and the patch for this fix can be downloaded from the following location.

Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
Assemblies link: http://syncfusion.com/Installs/support/patch/
Nuget link: http://syncfusion.com/Installs/support/patch/   

Assembly Version:
Installation Directions :
This patch should replace the files “Syncfusion.Tools.Windows” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.6
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\\precompiledassemblies\\4.6

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.

Note :
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.


Disclaimer :
Please note that we have created this patch for version specifically to resolve the following issue reported in the forum. 149596

If you have received other patches for the same version for other products, please apply all patches in the order received.

This fix will be included in our 2019 Volume 4 SP1 release which is expected in the mid of Feb 2020.

Gokul S

GS Gokul Sainarayanan Syncfusion Team January 31, 2020 06:28 AM UTC

Hi Tiago,

We are glad to announce that our Essential Studio Volume 4 SP 1 2019 (v17.4.0.46) is rolled out and is available for download under the following link. In this release, we have included the fix for the reported issue "Child items are not properly cleared in TreeNavigator when clear the items in run time".

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Gokul S

Live Chat Icon For mobile
Up arrow icon