SelectedNode programatically doesn't highlight selected node

Hello,

I'm trying to select a node programatically in the MultiColumnTreeView.

When i do it, my node is selected (it's the good one when i look inside the SelectedNode property).

Though in the UI, the node is not selected (no highlight of selection), but it work when i'm selecting one with the mouse.

The treeView is in single selection mode, fullrow select is true and have the "Office2019Colorful" theme if it can help.


Has anyone got this problem before ?


Thanks for your helps, have a great day.


3 Replies

DM Dhanasekar Mohanraj Syncfusion Team April 1, 2022 02:14 PM UTC

Hi Thomas G,

Based on your provided details, we have checked your reported scenario. Unfortunately, we are unable to replicate the reported issue. It works as expected. Please find the tested sample from attachment.

Please have a look at this sample and let us know. if you still facing the issue please try to reproduce the reported issue in this sample and revert to us with the modified sample. It will be more helpful for us to find the exact cause for the issue and to provide a prompt solution.

Regards,
Dhanasekar M.


Attachment: MultiColumnTreeViewDemo_51b21687.zip


TG Thomas G April 6, 2022 09:10 AM UTC

Hi, 


After using your sample to debug mine, I found out that it was because I was changing the selected node via a button.

So the control (multicolumntreeview) didn't had focus, to resolve I just had to use the multicolumntreeview.Focus() method before calling the selection.


Thanks for your help.


Best regards,

Thomas G



MA Mohanram Anbukkarasu Syncfusion Team April 7, 2022 06:22 AM UTC

Hi Thomas,


We are glad to know that the reported problem has been resolved at your end. Please let us know if you require any other assistance from us.


Regards,

Mohanram A.


Loader.
Up arrow icon