Error using SfNavigationDrawer since upgrade from 18.X to 19.1.0.55

Since a recent upgrade to 19.1.0.55 I have been getting an error related to the use of theSfNavigationDrawer control. I have a set of menu items which have child items underneath them as shown below:



When I expand one of the items, I can see an error in the output window that I didn't get in 18.X:

System.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=IsExpanded; DataItem='NavigationItem' (Name=''); target element is 'ToggleButton' (Name='NavigationItemExpander'); target property is 'IsChecked' (type 'Nullable`1') NullReferenceException:'System.NullReferenceException: Object reference not set to an instance of an object. 

This is a now a state from which clicking on any child menu items underneath this item then crashes - but it is caused by this initial error above.
I have not changed any code. It works in 18.X but not in 19.1.0.55.
Any ideas?

6 Replies 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team April 9, 2021 06:43 AM UTC

Hi James,

Greetings from Syncfusion.

We have analyzed your query. We have prepared a sample based on the information provided using latest version. We regret to let you know that we were not able to replicate the same. Find the sample & Video link from below.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Hierarchical-270176222

Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ExpandarVideo1835152121

Since we were not aware for your exact scenario. So, could you please try our sample and let us know if you still facing the same issue? If you are facing the same issue, please provide the complete runnable sample which would be helpful for us to check on it and provide you the solution as soon as possible.

Regards,
Suganya Sethuraman.
 



JA James April 9, 2021 08:11 AM UTC

I am more or less following the example provided on the instructions for the control:

https://help.syncfusion.com/wpf/navigation-drawer/populating-data#hierarchical-data-binding

I am using hierarchical binding, with the menu items defined in the code as per the example.


SS Suganya Sethuraman Syncfusion Team April 12, 2021 09:56 AM UTC

Hi James,

We have analyzed the reported issue based on the information provided. We could be able to reproduce the same. We have fixed the reported issue. Please find the assembly from link below.

Assembly Version: 19.1.0.55

Disclaimer: Please note that we have created this patch for the version v19.1.0.55 specifically to resolve the issue reported in this incident.

Assembly: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Assembly868811523

Note: Please refer the below link to apply the custom assembly

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

Note: We have created this patch only for resolving this issue, based on your confirmation we will proceed further on our next release.

The fix will be included in our upcoming weekly NuGet release which will be expected to be rolled out on April 20, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



JA James April 13, 2021 03:32 PM UTC

I have applied the patch and I can see that I no longer get the same error, but it still doesn't work.

When I click a Navigation item which has child items, I get this output window text:

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type NavigationItem

Then it crashes when clicking on any of the child NavigationItems:



clickedItem is valid, but the DataContext property on it is [DisconnectedItem] for some reason.

Any ideas what the problem is?


Many thanks!

James


SS Suganya Sethuraman Syncfusion Team April 14, 2021 09:09 AM UTC

Hi James,

Sorry for the inconvenience.

Please have the assembly from the below link for this issue fix,

Assembly Version: 19.1.0.55

Disclaimer: Please note that we have created this patch for the version v19.1.0.55 specifically to resolve the issue reported in this incident.

Assembly:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/Assembly1764102698

Note: Please refer the below link to apply the custom assembly

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

Note: We have created this patch only for resolving this issue, based on your confirmation we will proceed further on our next release.

The fix will be included in our upcoming weekly NuGet release which will be expected to be rolled out on April 20, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team April 21, 2021 05:18 AM UTC

Hi James,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.1.0.57 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Suganya Sethuraman.
 


Marked as answer
Loader.
Up arrow icon