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

Programmatically select item

Hello,

Programmatically selecting an item of a TreeNvaigator control does not have any effect (I expect the item state to turn to selected and brought into view).

I attach a sample that shows the issue.

Kind Regards,

Stergios

Attachment: SfTreeViewNavigatorSample_65dbd68d.zip

3 Replies

SM Sugapriya Mariappan Syncfusion Team February 8, 2016 12:57 PM UTC

Hi Stergios,

Thank you for contacting Syncfusion Support.

We have checked your sample by selecting items at runtime using Select method. As per the behavior of TreeNavigator control, it moves level by level to bring the SelectedItem into view. Items will be generated once the Parent container item loaded. So we couldn't select the third level item directly.  To select the item from third level, control should navigate to first and second level one by one. So click the button twice to get the third level as SelectedItem in this sample and you can download the modified sample from the below link

Sample link:SfTreeViewNavigatorSample

Please let us know if you need any other assistance.

Regards,
M.Sugapriya 


ST Stergios February 8, 2016 08:42 PM UTC

Thanks for that. I can understand the logic now.

Kind Regards,

Stergios


SM Sugapriya Mariappan Syncfusion Team February 9, 2016 04:31 AM UTC

Hi Stergios,

Thank you for your update

Please let us know if you need any other assistance

Regards,
M.Sugapriya

Loader.
Live Chat Icon For mobile
Up arrow icon