Item display stops updating after collapsing and reopening tab

I have a tab called "Open Documents." When you click a button, it adds the name of a random document as a Navigation Item to the NavigationItemsCollection called "Items" of the tab. The tab header also gets updated with the total number of items in the Items collection.

This works fine, up until the point when you collapse the Open Documents tab. After this point, when you reopen it, the list of document names stops updating (but the header number still updates correctly).


STEPS:
1. I open the Navigation drawer, the Open Documents tab has no items under it, and it starts as collapsed, with the header "Open Documents (0)."
2. I click the "Add document" button. "Document 1" is added to the Items of the Open Documents tab, and the tab header now says "Open Documents (1)" and Document 1 is visible and clickable underneath it.
3. I click the "Add document" button again. "Document 2" is added to the Items of the Open Documents tab, and the tab header now says "Open Documents (2)" and both Document 1 and Document 2 are visible and clickable underneath it.
4. I click the "Open Documents (2)" tab to collapse it. The list of documents ("Document 1" and "Document 2" disappear from view, as expected.
5. I click the "Open Documents (2)" tab to expand it. The list of documents ("Document 1" and "Document 2" reappear underneath it, as expected.
6. I click the "Add document" button again. Unexpectedly, nothing is added to the visible list of items. It still only says "Document 1" and "Document 2", but the header does update to say "Open Documents (3)" despite this.


I checked in the debug and the Items list actually does have 3 items in the Items list in memory, but the list no longer will update visually on the front end. From this point on, it is no longer possible to change what items are shown to the user at all.

It seems like there is something happening in the background code when actively collapsing a tab that permanently stops updating the visual list of items for the tab for the rest of the time. Any help with this would be appreciated!

Note: I already tried using ItemsSource instead of Items, but that does not get updated either.


3 Replies

BV Brundha Velusamy Syncfusion Team January 17, 2024 03:20 PM UTC

Hi Robert,

 

We have reviewed your query based on the provided information and have been able to reproduce the reported issue, "NavigationItem Fails to Update SubItems After Collapsing and Expanding" at our end. We have logged a bug report for this. You can track the status of the bug through the feedback link provided below.

 

Link : https://www.syncfusion.com/feedback/50051/navigationitem-fails-to-update-subitems-after-collapsing-and-expanding

 

We will share a patch for the reported issue on January 31, 2024. We appreciate your patience until then.

 

Note: The provided feedback link is private, and you need to log in to view this feedback.

If you have any more specifications or a scenario to be tested, you can add them as a comment in the portal.

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

 

Regards,

Brundha V



AJ AhamedAliNishad JahirHussain Syncfusion Team January 31, 2024 02:42 PM UTC

Hi Robert,

 

Query : Item display stops updating after collapsing and reopening tab

 

We have fixed the reported issue "NavigationItem Fails to Update SubItems After Collapsing and Expanding", Kindly get the fixed Assembly and Nuget using the link provided below. If you require any further information, please do not hesitate to let us know. This fix will be included in our weekly release on February 13, 2024. We appreciate your patience until then.

 

Assembly version: 24.1.41

 

Assembly Link:  https://syncfusion.com/Installs/support/patch/24.1.41/1145562/F186231/SyncfusionPatch_24.1.41_1145562_1312024014805031_F186231.zip

 

Nuget : https://syncfusion.com/Installs/support/patch/24.1.41/1145562/F186231/SyncfusionNuget_24.1.41_1145562_1312024014805031_F186231.zip

 

Disclaimer:

 

Please note that we have created this patch for version 24.1.41 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.

 

Note: Please refer to 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: Please clear the NuGet cache, before using the latest one. Please refer below link for this

 

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache

 

Please refer to the below KB to install the custom NuGet on a local machine,

https://support.syncfusion.com/kb/article/14586/how-to-install-the-maui-custom-nuget-in-the-windows-machine

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

 

Regards,

Ahamed Ali Nishad

 



BV Brundha Velusamy Syncfusion Team February 19, 2024 06:53 AM UTC

Hi Robert,

 

Apologies for the delayed update.

 

We have already included the fix for the reported issue in our weekly NuGet release v24.2.5 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 require any further assistance.

 

Regards,

Brundha V


Loader.
Up arrow icon