Unplanned
Last Updated: 11 Mar 2024 07:15 by ADMIN
Simon
Created on: 06 Apr 2022 12:43
Category: TreeView
Type: Bug Report
3
TreeView: [iOS] Exception when changing the ItemsSource and calling CollapseAll
Calling CollapseAll() on a RadTreeView after changing its ItemsSource causes an Exception on iOS.

Objective-C exception is thrown.  Name: NSInternalInconsistencyException Reason: attempt to delete item 9 from section 0 which only contains 8 items before the update

On Android, this works as expected.
2 comments
ADMIN
Yana
Posted on: 11 Mar 2024 07:15

Hello Shane,

I am sorry to hear you came across this issue.

Indeed, this is not in our immediate plans for the next release, still, we have it in mind as your comment raises its priority.

I'd suggest you open a support ticket and share more details/a sample app on the exact scenario you have, so we can think of a workaround.

Regards,
Yana
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Shane
Posted on: 08 Mar 2024 20:56

I also have this problem.

The key to reproduce this is changing the collection source. You will be able to reproduce it a lot if you change the collection source when the treeview is Collapsed. Only on iOS.

 I have a filter that i created with it changes the item within the item source. For the most part updating the list works but once i have entred in some characters into my filter i can never revert back to the original list if i remove everything in my filter
(this changes the itemsource back to an orignal list before anything in the filter is applied) 

A simialr issue was reported in another telerik control: RadListView
https://www.telerik.com/forums/uicollectionview-performing-reloaddata-as-a-fallback---invalid-update-invalid-number-of-items-in-section

This was fixed. But given that Maui is a thing im not sure if this will get any attention