Cannot set Selected Item

I need to set the selected item when Application starts. I have added a SelectedItem property in the TreeViewModel, however, when I run application nothing happens.
I have also attached the same code to a button and it work? Does anyone know how to select item in treenavigator at startup.

Attachment: BlackBook_52b664b8.zip

6 Replies 1 reply marked as answer

EM Elakkiya Muthukumarasamy Syncfusion Team February 22, 2021 12:07 PM UTC

Hi Mariusz Juszkiewicz 
  
Thank for contacting Syncfusion support.  
  
We have confirmed the reported behavior "SelectedItem property not working properly while loading SFTreeNaviagator control" with SfTreeNavigator is a bug and please find the status using the following feedback link below:  
  

The patch for this fix is estimated to be available on 15th  March, 2021. We appreciate your patience until then. 
  
Regards,  
Elakkiya 



EM Elakkiya Muthukumarasamy Syncfusion Team March 15, 2021 12:20 PM UTC

Hi Mariusz, 
 
Thank you for your patience. 
 
Due to some complexities, we are still working on fixing the reported issue. we need more time to fix and ensure it in all the cases. We will fix and provide the patch by March 17, 2021. 
 
We appreciate your patience until then.  
 
Regards, 
Elakkiya 



VR Vijayalakshmi Roopkumar Syncfusion Team March 17, 2021 07:26 AM UTC

Hi Mariusz   
   
Thanks for your patience.  
  
The reported issue with SfTreeNavigator has been fixed and included in the patch which can be download from the below links: 
   
Recommended approach - exe will perform automatic configuration.   
   
Please find the patch setup from below location:   
   
Patch link :   
Please find the patch assemblies alone from below location:   
Assemblies Link:   
Nuget link:    
 
 
Assembly Version: 18.4.0.39 
   
Installation Directions:   
This patch should replace the files "Syncfusion.SfTreeNavigator.WPF” under the following folder.   
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]   
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.4.0.39\precompiledassemblies\18.4.0.39\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 must manually copy and paste them to the preferred location or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.   
   
   
Disclaimer:   
Please note that we have created this patch for version 18.4.0.39 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.  Please let us know, if you are using any other Syncfusion version, we will provide patch in your version.   
   
Regards,   
Vijayalakshmi VR  



MJ Mariusz Juszkiewicz March 18, 2021 04:34 AM UTC

Vijayalakshmi,

I was using version 18.4.0.30 so I have updated to 18.4.0.39 and applied the patch but unfortunately my application crashed on

 private void SfTreeNavigator_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            
            var selection = (e.AddedItems[0] as TreeModel).UserControlKey.ToString();.

I am going to revert my application to previous version until this is solved.


VR Vijayalakshmi Roopkumar Syncfusion Team March 19, 2021 02:15 AM UTC

Hi Mariusz, 
 
Thank you for your update. 
 
We were able to observe the NRE crash with selection changed event and we are currently working on it. We will fix and update you the details on 19th March, 2021. 
 
Please let us know if you need any other assistance on this. 
 
Regards, 
Vijayalakshmi VR 



EM Elakkiya Muthukumarasamy Syncfusion Team March 23, 2021 02:35 AM UTC

Hi Mariusz, 
    
Thanks for your patience.                                        
   
The reported issue ”NRE crash with selection changed event has been fixed.  
 
 
This patch which can be download from the below links.   
    
Recommended approach - exe will perform automatic configuration.    
    
Please find the patch setup from below location:    
 
 
Patch link :   
Please find the patch assemblies alone from below location:    
    
Assemblies Link:    
    
Nuget link:     
   
    
Assembly Version: 18.4.0.39   
    
Installation Directions:    
This patch should replace the files "Syncfusion.SfTreeNavigator.WPF” under the following folder.    
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]    
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.4.0.39\precompiledassemblies\18.4.0.39\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 must manually copy and paste them to the preferred location or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.    
    
    
Disclaimer:    
Please note that we have created this patch for version 18.4.0.39 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.  Please let us know, if you are using any other Syncfusion version, we will provide patch in your version. 
    
Regards,    
Elakkiya 


Marked as answer
Loader.
Up arrow icon