UI freezing if DetailsView is used

Hi,
when I loading items in datagrid the loading is very slow (and UI freezing) if I use DetailsViewDefinition in datagrid.
Without DetailsViewDefinition everything works fine.

I added exaple.

Thanks for help

Regards,
Ondrej Rada


Attachment: WpfApp1_8a2a4bb.zip

18 Replies

VS Vijayarasan Sivanandham Syncfusion Team May 17, 2022 03:22 PM UTC

Hi Ondrej,

We have checked the provided sample and are unable to replicate the issue “loading items in datagrid the loading is very slow using with detailsviewdefinition” from our end. It is working fine as expected. Please find the tested video demo in the attachment.

We have tested VisualStudio2022 with Windows 10 and 11 Operating systems.

If you still facing the same issue, provide more information related to your query?

        1. Details about the machine configuration of issue produced system?
        2.
Details or screenshot of Operating System used in issue produced system?
        3. Details or screenshot of Microsoft Studio Visual Version used in issue produced system?
        4.
Video illustration of the reported problem
     

It will be helpful for us to check on it and provide you with the solution at the earliest.

Regards,
Vijayarasan S


Attachment: UIFreeze_7b4988b2.zip


ON Ondrej May 17, 2022 07:18 PM UTC

Hi,

My configuration:
- Windows 10 Home x64 - 21H2
- Visual Studio 2022 (17.1.1)  / Rider 2022.1
- AMD Ryzen 9 5900HX
- 32GB


I added tested video and screen from jetbrains profiler.  

Thanks,
Regards,

Ondrej Rada


Attachment: Performance_issue_72cafec8.zip


VS Vijayarasan Sivanandham Syncfusion Team May 18, 2022 03:17 PM UTC

Hi Ondrej,


We are currently checking your reported issue with provided information and we need two more business days to validate this. We will update you with further details on May 20, 2022.


We appreciate your patience until then.


Regards,

Vijayarasan S




VS Vijayarasan Sivanandham Syncfusion Team May 20, 2022 03:00 PM UTC

Hi Ondrej,

We have checked the reported scenario from our end. You are adding a more number of records by iterating through parent and child collection. In this case, the scroll bar value is updated based on items loaded in SfDataGrid. You are trying to scroll the data when items are not loaded completely in SfDataGrid. So, scrollbar value and scrolling are not updated immediately in SfDataGrid.

You can resolve the reported problem by using the batch updates when adding or removing the more number of records in SfDataGrid. Please refer the below code snippet,

private async Task ChangeDataCommandExecute()

{

            //Suspends data manipulation operations in View

            DataGrid.View.BeginInit();

 

            // Add, remove and update the underlying collection.

            Items.Clear();

 

            await Task.Run(() =>

            {

                for (var i = 0; i < 500/*100000*/; i++)

                {

                    Items.Add(new Item { Name = $"rand{i}", });

                }

            });

 

            //Resumes data manipulation operations and refresh the View.

            DataGrid.View.EndInit();

}

 

private void LoadChildrenDataExecute(Item parent)

{

            //Suspends data manipulation operations in View

            DataGrid.View.BeginInit();

 

            // Add, remove and update the underlying collection.

            parent.Children.Clear();

 

            for (var i = 0; i < 25; i++)

            {

                parent.Children.Add(new Item { Name = $"rand{i}", });

            }

 

            //Resumes data manipulation operations and refresh the View.

            DataGrid.View.EndInit();

}


UG Link: https://help.syncfusion.com/wpf/datagrid/performance#improving-performance-when-doing-batch-updates

https://help.syncfusion.com/wpf/datagrid/performance

KB Link: https://www.syncfusion.com/kb/7752/how-to-improve-performance-when-loading-grid-with-records-and-columns-in-wpf-datagrid

Please find the modified sample in the attachment and let us know if you have any concerns in this.


Regards,

Vijayarasan S


Attachment: ModifiedSample_fa6a986b.zip


ON Ondrej May 21, 2022 09:44 AM UTC

Hi,

I tried your example. Still not working and freezing if detail is set. I added new example (hope it's better than previous).

Thanks for help,


Regards,

Ondrej Rada


Attachment: performance_issue_2nd_example_6a31dae6.zip


VS Vijayarasan Sivanandham Syncfusion Team May 23, 2022 02:41 PM UTC

Hi Ondrej,


We are currently checking your reported problem with provided information and we need two more business days to validate this. We will update you with further details on May 25, 2022.


We appreciate your patience until then.


Regards,

Vijayarasan S




VS Vijayarasan Sivanandham Syncfusion Team May 25, 2022 01:47 PM UTC

Hi Ondrej,

We have created a bug report for the reported issue “UI does not respond when loading more number records at runtime in DetailsViewDataGrid”. We will fix this issue and include it in our upcoming Weekly NuGet release scheduled for June 14, 2022.

You can track the status of this report through the following feedback link,

Feedback Link: https://www.syncfusion.com/feedback/35182/ui-does-not-respond-when-loading-more-number-records-at-runtime-in

Note: The provided feedback link is private, and you need to login to view this feedback.

We appreciate your patience until then.

Regards,

Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team June 14, 2022 01:54 PM UTC

Hi Ondrej,


We regret for the inconvenience.

We are still working on this issue. The fix for this issue will be include in our Essential Studio 2022 Volume 2 release scheduled for the end of June 2022.


We will let you know once it is released with the fix. We appreciate your patience until then.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team July 1, 2022 02:36 PM UTC

Hi Ondrej,

We regret for the inconvenience.

We are unable to include the fix for this issue in our Essential Studio 2022 Volume 2 Main Release which is released today as promised. We will fix this issue and include it in our upcoming Weekly NuGet release scheduled for July 12, 2022.

We will let you know once it is released. We appreciate your patience until then.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team July 12, 2022 04:00 PM UTC

Hi Ondrej,

We deeply regret the delay and inconvenience caused.


We are unable to include the fix for this issue in our NuGet package which is released today. We will fix this issue and include it in our upcoming Essential Studio 2022 Volume 2 Service Pack release which is expected to be rolled out in the mid of August.


We will let you know once it is released. We appreciate your patience until then.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team August 9, 2022 02:23 PM UTC

Hi Ondrej,


We deeply regret for the delay and inconvenience caused.

We couldn't include the changes for the reported issue in our Essential Studio 2022 Volume 2 Service pack released yesterday. We will check this issue and include it in our Essential Studio 2022 Volume 3 release scheduled for the end of Sep 2022.


We will let you know once it is released. We appreciate your patience until then.


Regards,

Vijayarasan S



ON Ondrej August 9, 2022 04:26 PM UTC

Hi  Vijayarasan,

is there any workaround? I tried batch load, but no luck. 

Thanks 

Reqards,

OR



VS Vijayarasan Sivanandham Syncfusion Team August 10, 2022 04:04 PM UTC

Hi Ondrej,

We regret to inform you that there is no other workaround to load the large number of data with DetailsViewDefinition in DataGrid.

As we mentioned earlier, we will check this issue and include it in our Essential Studio 2022 Volume 3 release scheduled for the end of Sep 2022. 

We will let you know once it is released. We appreciate your patience until then.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team September 30, 2022 01:57 PM UTC

Hi Ondrej,

We regret to let you know that we are unable to include the fix for this issue in our Essential Studio 2022 Volume 3 Main released yesterday. We will fix this issue and include it in our upcoming Essential Studio 2022 Volume 3 Service Pack release which is expected to be rolled out in the mid of November.

We will let you know once it is released. We appreciate your patience until then.


Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team November 11, 2022 02:25 PM UTC

We couldn't include the changes for the reported issue in our Essential Studio 2022 Volume 3 Service pack released this week. We will fix and include this in our Essential Studio 2022 Volume 4 release scheduled for the mid of December.



VS Vijayarasan Sivanandham Syncfusion Team December 22, 2022 03:35 PM UTC

Ondrej,

We are facing some difficulties and failures while ensuring the fix for your reported issue in our product stability. Due to this fix affect our previous behavior. So, we are considering it as a performance improvement feature request. Currently, we don't have any immediate plan for the feature “Improve the performance when loading more number records at runtime in DetailsViewDataGrid”. We will implement this feature in any of our upcoming releases.

At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.

Feedback Link: https://www.syncfusion.com/feedback/35182/ui-does-not-respond-when-loading-more-number-records-at-runtime-in



ON Ondrej August 1, 2023 12:02 PM UTC

Hi,

Any progress? 

Regards,

Ondrej Rada



VS Vijayarasan Sivanandham Syncfusion Team August 2, 2023 03:04 PM UTC

Ondrej,

We regret to inform you that currently, we don't have any immediate plan for the feature “UI does not respond when loading more number records at runtime in DetailsViewDataGrid”. As we mentioned earlier, we will implement this feature in any of our upcoming releases.

At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know once this feature is implemented. We appreciate your patience until then.


Loader.
Up arrow icon