Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] EmptyViewTemplate not displayed when ItemsSource is set to Null #28334

Open
NafeelaNazhir opened this issue Mar 12, 2025 · 2 comments
Assignees
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView partner/syncfusion Issues / PR's with Syncfusion collaboration s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@NafeelaNazhir
Copy link
Contributor

NafeelaNazhir commented Mar 12, 2025

Description

In a .NET MAUI application, when using a CollectionView with an ItemsSource initially set to a list, the EmptyViewTemplate is not displayed when the ItemsSource is subsequently set to Null. Additionally, if the ItemsSource is initially set to null, the EmptyViewTemplate is also not displayed.

Note: For EmptyView

  • When EmptyView is selected first and then ItemsSource is selected, the EmptyView is not displayed.

  • When ItemsSource is selected first and then EmptyView is selected, the EmptyView is displayed correctly.

Screen.Recording.2025-03-12.110135.mp4

Steps to Reproduce

  1. Launch the application on Windows CollectionViewSample.zip
  2. Tap the EmptyView/EmptyViewTemplate button to navigate to the CollectionView Control Page.
  3. Tap the Options toolbar item to navigate to the Options Page, then select ItemsSource and EmptyViewTemplate.
  4. Observe that the EmptyViewTemplate is not displayed.

Expected Behavior: The EmptyViewTemplate should be displayed when the ItemsSource is set to None, regardless of the initial state of the ItemsSource.

Actual Behavior: The EmptyViewTemplate is not displayed when the ItemsSource is initially set to a list and then changed to None.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@NafeelaNazhir NafeelaNazhir added the t/bug Something isn't working label Mar 12, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Mar 12, 2025
@Ahamed-Ali Ahamed-Ali self-assigned this Mar 13, 2025
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 13, 2025
@Zhanglirong-Winnie
Copy link

This issue has been verified Visual Studio 17.14 Preview 1.1(9.0.40 & 9.0.30). Can repro this issue on Windows platform.

@StephaneDelcroix StephaneDelcroix added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Mar 13, 2025
@StephaneDelcroix StephaneDelcroix added this to the Backlog milestone Mar 13, 2025
@NafeelaNazhir NafeelaNazhir changed the title [Windows] EmptyViewTemplate not displayed when ItemsSource is initially set to a list and then set to Null [Windows] EmptyViewTemplate not displayed when ItemsSource is set to Null Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView partner/syncfusion Issues / PR's with Syncfusion collaboration s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants