A collection view inside a Tab View SelectionChanged only works on long holds

I'm on iOS debugging. My SelectionChanged Event is not firing into the handler if I tap on it. I have to long press for it to work. Here's my xaml:



<tabview:SfTabView x:Name="ProfileTabs" VerticalOptions="Fill" is>

    <tabview:SfTabView.Items>


        <tabview:SfTabItem Header="Inventory">

            <tabview:SfTabItem.Content>

                <CollectionView x:Name="listView"

                              SelectionMode="Single"

                              SelectionChanged="InventoryListView_SelectionChanged"

                              ItemSizingStrategy="MeasureFirstItem"

                              HorizontalOptions="FillAndExpand"

                              VerticalOptions="FillAndExpand">

                    <CollectionView.ItemTemplate>

                        <DataTemplate>

                            <StackLayout HeightRequest="60"

                                       BackgroundColor="Transparent"

                                       HorizontalOptions="Fill"

                                       VerticalOptions="Fill">

                              <StackLayout Orientation="Horizontal" Margin="10,10,10,0">

                                  <Label Text="{Binding Type}"/>

                                  <Label Text="{Binding Status}" HorizontalOptions="EndAndExpand" ></Label>

                              </StackLayout>

                              <StackLayout Orientation="Horizontal" Margin="10,0,10,10">

                                  <Label Text="{Binding CompanyId, StringFormat='{0} -'}" FontSize="12" TextColor="Gray"></Label>

                                  <Label Text="{Binding MakeModel}" FontSize="12" TextColor="Gray" ></Label>

                              </StackLayout>

                              <BoxView

                                  HeightRequest="1"

                                  BackgroundColor="LightGray"

                                  VerticalOptions="End" />

                          </StackLayout>

                        </DataTemplate>

                    </CollectionView.ItemTemplate>

                </CollectionView>


            </tabview:SfTabItem.Content>

        </tabview:SfTabItem>


    </tabview:SfTabView.Items>

</tabview:SfTabView>


7 Replies

KJ Kishore Jeyachandran Syncfusion Team July 23, 2025 01:57 PM UTC

Hi Bobby,

 

Thank you for contacting Syncfusion support.

 

We were able to replicate the issue using the CollectionView, where the SelectionChanged event is not triggered. We are currently validating this issue at the source level and will provide further updates on July 25, 2025.

 

In the meantime, as a workaround, we recommend using the Syncfusion ListView instead of the CollectionView, as it properly triggers the SelectionChanged event when an item is tapped.

 

We have attached our sample using the Syncfusion ListView for your reference.

 

If you have any further questions or need additional assistance, feel free to reach out.

 

Regards,

Kishore J


Attachment: TabViewSample_3f5e7864.zip


KJ Kishore Jeyachandran Syncfusion Team July 25, 2025 01:45 PM UTC

Hi Bobby,

 

Thank you for your patience.

 

We have fixed the reported issue and are currently validating all possible test cases. We will share the patch for the reported issue on July 28, 2025.

 

If you have any further questions or need additional assistance, feel free to reach out.

 

Regards,

Kishore J



KJ Kishore Jeyachandran Syncfusion Team July 28, 2025 01:14 PM UTC

Hi Bobby,

 

We have resolved the reported issue where the SelectionChanged event is not triggered using CollectionView in SfTabView.

 

At present a custom NuGet patch for version 30.1.41 has been created to comprehensively address this issue. The NuGet file is attached for your convenience.

 

Please note that we have created this patch for version 30.1.41 specifically to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.

 

  1. Clear the NuGet Cache: Before using the latest NuGet package, please clear the NuGet cache. Refer to the following guide:
    How to clear NuGet cache?
  2. Install Custom NuGet: Please refer to this KB article to install the custom NuGet on a local machine:
    How to install a custom NuGet in a Windows machine?

 

As we mentioned earlier, this fix will be included in our upcoming weekly release scheduled on August 5, 2025. We will notify you as soon as the weekly NuGet is released. Thank you for your patience and understanding in the meantime!

 

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."

 

Root Cause:

The root cause of the issue was an improper handling of touch event propagation within the UI hierarchy of the iOS implementation, specifically in relation to how input views were being tested for touch interactions.

 

Resolution:

The issue has been addressed by implementing a modification that enhances the response of the view hierarchy. This modification allows touch events to be processed more effectively, ensuring that taps register correctly for item selection.

 

Regards,

Kishore J


Attachment: Syncfusion.Maui.TabView.30.1.41_2082aac8.zip


KJ Kishore Jeyachandran Syncfusion Team August 8, 2025 11:27 AM UTC

Hi Bobby,
 

We are glad to announce that our Essential Studio® 2025 Volume 2 Service Pack Release v30.2.4 has been rolled out and is now available for download at the link below:

 

Essential Studio® 2025 Volume ... | Announcements Forums | Syncfusion®


We have resolved the ItemTapped event was not triggered when using a CollectionView within an SfTabItem on iOS in our Essential Studio® 2025 Volume 2 Service Pack Release v30.2.4 which is available for download(NuGet).

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 

Regards,

Kishore J



AM Ajay Mundi September 2, 2025 05:28 PM UTC

What if we are using syncfusion maui toolkit as was recommended for latest improvements to tabview control. When will it be available there?



KJ Kishore Jeyachandran Syncfusion Team September 3, 2025 11:19 AM UTC

Hi Ajay,

 

We have fixed the SelectionChanged issue for the Toolkit as well. The fix will be available in our upcoming 1.0.7 release of the Syncfusion.Maui.Toolkit NuGet package. The issue was addressed in our open-source MAUI Toolkit, and you may track its development and view the source code on our GitHub repository here: Syncfusion .NET MAUI Toolkit – GitHub.

 

We are targeting the end of September for the release of this version.

 

We appreciate your patience and will notify you once the update is available.

 

Regards,

Kishore J



KJ Kishore Jeyachandran Syncfusion Team October 8, 2025 04:19 AM UTC

Hi Ajay,

 

We are pleased to inform you that we have fixed the SelectionChanged issue for the Toolkit TabView as well. This fix is included in our latest MAUI Toolkit release v1.0.7, which is now available for download.

 

Thank you for your continued support and patience while we worked on this update. If you need any further assistance, please don’t hesitate to contact us!

 

Regards,

Kishore J


Loader.
Up arrow icon