Declined
Last Updated: 19 Jun 2023 12:40 by ADMIN
Daniel
Created on: 17 May 2022 14:59
Category: DataGrid
Type: Bug Report
3
DataGrid Won't Render 2nd Instance

Hi Team,

I have attached a reproducible. Open DashboardView.xaml, there you'll find the DataGrid.

Run the project on Windows and take the following steps:

  • Step 1. Run the app and click Button 1 to load an instance of this ContentView
    • Observe => The DataGrid renders as expected
  • Step 2. Click Button 1 again to reset and load a new instance of this ContentView
    • Observe => The DataGrid will NOT render (you can repeat this step multiple times)
  • Step 3. Resize the app window
    • Observe the DataGrid will be rendered again

The only way I could get it to render again was by resizing the app window, even calling InvalidateMeasure(SizeChanged) didn't work.

 

The logic is simple, the button click just clears MainPage.xaml's container children and adds a new instance of DashboardView:

private void OnButton1Clicked(object sender, EventArgs e)
{
    currentContentViewHolder.Children.Clear();
    currentContentViewHolder.Children.Add(new DashboardView());
}
Attached Files:
5 comments
ADMIN
Didi
Posted on: 19 Jun 2023 12:40

Hi all,

I have updated the status of this item to Declined. We cannot reproduce on our side with latest versions. If you have any issues rendering the DataGrid, please open a support ticket/new feedback item/forum post, etc. and describe what is the exact issue, steps to reproduce and environment used with all versions.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Lance | Senior Manager Technical Support
Posted on: 27 Jun 2022 16:43

Hi Derrick,

There are still known rendering issues with WinUI and Android that Microsoft needs to fix, you can see the details in our latest release notes => https://www.telerik.com/support/whats-new/maui-ui/release-history/telerik-ui-for-net-maui-(version-2-0-0

That being said, you mentioned you're using GA, that's one release old. Can you please update .NET MAUI workloads to SP1? You can do this by updating Visual Studio 2022 Preview to the latest version and running the following command in PowerShell

  • dotnet workload install maui --source https://api.nuget.org/v3/index.json

Regards,
Lance | Manager Technical Support
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Derrick
Posted on: 27 Jun 2022 16:20

I am experiencing this problem on Windows with the latest (2.0) DataGrid and GA MAUI, but with a little different repro.

  1. Load Items into DataGrid
  2. Navigate to another page
  3. Return to page with either "PopToRootAsync" or "PopAsync"
  4. No items appear in DataGrid
  5. Resize window and Items appear

I attached a GIF with a demonstration.

 

Attached Files:
ADMIN
Lance | Senior Manager Technical Support
Posted on: 24 May 2022 12:25

Hi Daniel,

I also wanted to chime in and let you know that I have confirmed Didi's findings in all three of our testing situations that demonstrated the issue.

  • Page to Page navigation using Shell
  • Page to Page navigation using FlyoutPage + NavigationPage
  • New ContentView instances

I'm no longer seeing the problem using .NET MAUI GA & Telerik UI for MAUI v1.0!

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Didi
Posted on: 24 May 2022 10:21

Hello David,

I am unable to reproduce this behavior using Telerik .NET MAUI 1.0.0 version. Please update to this version and check on your side. 

I look forward to your reply.

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.