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
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
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
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
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
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
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
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
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
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
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
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
Hi Vijayarasan,
is there any workaround? I tried batch load, but no luck.
Thanks
Reqards,
OR
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
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
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.
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
Hi,
Any progress?
Regards,
Ondrej Rada
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.