Telerik ui for xamarin 2023.3.1010 crashes when loading carouselview on android

0 Answers 72 Views
ListView ListView - Xamarin.Android
Vlad
Top achievements
Rank 1
Vlad asked on 15 Nov 2023, 09:27 PM

Hi, after updating to telerik ui for xamarin 2023.3.1010 I am experiencing crashes in radlistview ListViewUserCommand ItemTap.

In my command I find the selected object in the bound list, and i set one of its flags. The problem occurs when the set triggers the onpropertychanged event of one of those flags, and then it fully crashes the app completely

Didi
Telerik team
commented on 19 Nov 2023, 01:17 PM

Hi Vlad,

Based on the title it seems you are using the CarouselView? Is this correct. The ListView is inside CarouselView?

If you use the ItemTapCommand, with UserCommand, then the command in the ViewModel must use as a command context the ItemTapCommandContext. This context has the tapped item. I tested the case and no exception.


As a next step - open a support ticket, send us a sample repro project with the exact implementation you have. Also the stack-trace and on which platform the issue happens. 

Vlad
Top achievements
Rank 1
commented on 19 Nov 2023, 04:17 PM

Oh, the crash happens before the carouselview gets loaded actually. I started writing this ticket before I made further inspection into the code, and the crash doesn't have anything to do with carouselview.

In my situation I have a list of items, each of the items has a ItemTapCommand, which in turn opens another page with the carouselview, however, the constructor of the carouselview page doesn't even get called yet, because crash happens when in my ItemTapCommand I find the current item selected and set its flag, and that's where the crash happens

Didi
Telerik team
commented on 20 Nov 2023, 06:10 AM

Hi Vlad,

As I requested in my previous comment, I will need the exact setup you have, in order to research the case further. Open a support ticket and send us the requested details.

No answers yet. Maybe you can help?

Tags
ListView ListView - Xamarin.Android
Asked by
Vlad
Top achievements
Rank 1
Share this question
or