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

List View content becomes invisible In Window platform #26842

Open
SivakumarVairamuthu opened this issue Dec 27, 2024 · 4 comments
Open

List View content becomes invisible In Window platform #26842

SivakumarVairamuthu opened this issue Dec 27, 2024 · 4 comments
Labels
area-controls-listview ListView and TableView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@SivakumarVairamuthu
Copy link

SivakumarVairamuthu commented Dec 27, 2024

Description

When updating the CustomViewContent by clearing its children and re-adding them, the ListView inside the CustomViewContent becomes invisible, even though the Button updates correctly. The issue occurs when creating a custom view containing a CustomViewContent with a VerticalStackLayout that includes a ListView and a Button. After clearing and re-adding the children of the CustomView, the ListView becomes invisible, but the Button continues to update as expected.

Sample : ListView.zip

Video : https://github.com/user-attachments/assets/182f4483-9282-422d-b0b8-3b096c2e88e9

Steps to Reproduce

  1. Run the sample mentioned in the description.
  2. Click the 'UpdateCustomContentView' button.
  3. The List View content becomes invisible.

Expected Result:

  • Both List View content and Button should remain visible.

Actual Result:

  • List View content becomes invisible
  • Button remains visible.

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.19041.0

Did you find any workaround?

No response

Relevant log output

@SivakumarVairamuthu SivakumarVairamuthu added the t/bug Something isn't working label Dec 27, 2024
@RoiChen001 RoiChen001 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/windows 🪟 labels Dec 30, 2024
@RoiChen001
Copy link

I can repro this issue at Windows platform on the latest 17.13.0 Preview 2.1(9.0.14 & 9.0.21).

@karthikraja-arumugam karthikraja-arumugam added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Dec 30, 2024
@prakashKannanSf3972
Copy link
Contributor

@SivakumarVairamuthu ,

As a workaround, introduce a slight delay using await Task.Delay(20) during the process of re-adding the ListView to the layout. This delay allows the UI to process the changes correctly, helping resolve issues with data context and visibility. It ensures that the ListView reloads its items and functions as expected.

public async void UpdateContentView()
{
  this.parentGrid.Children.Clear();
  if (this.CustomContentView != null)
  {
      await Task.Delay(20);
      this.parentGrid.Children.Add(this.CustomContentView);
  }
}

@Eskissimo
Copy link

Hello,

In addition and for investigation, i get the same kind of issue on Android platform with some devices. I will try to give a sample project next week (in another issue).

I use Scrollview with BindableLayout VerticalStackLayout. The items become invisible when i have more 50 items on the first load.

Regards.

@mattleibow mattleibow added this to the Backlog milestone Jan 4, 2025
@mattleibow mattleibow added the area-controls-listview ListView and TableView label Jan 4, 2025
@Eskissimo
Copy link

Version 9.0.30 doesn't solve issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-listview ListView and TableView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 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

6 participants