Duplicated
Last Updated: 31 May 2024 10:20 by ADMIN
Michal
Created on: 22 May 2024 17:43
Category: Grid
Type: Feature Request
4
Grid data binding - refresh - undocumented breaking change v6.0.0

Hi,

 documentation missing one extremely "silent" breaking change in grid data binding.

When binding/refreshing(subsequent reload) data to VARIABLE, there is "random" need to call grid.Rebind(); Mostly, when data are loaded outside of the grid, ie by some button, or another component. Used together with selected items and grouping enabled.


<TelerikGrid Data="@GridData" SelectionMode="GridSelectionMode.Single" SelectedItems="..."
						 OnRowClick="@...r"  @ref="GHL" ....>

 

prior v6.0, everything is OK:

protected async Task ReloadGrid(int? xid)
{

GridData= await LoadDatafromservice<TItem>...;

}

After upgrading same code, it silently not displaying data or cras.

new breaking behavior at v6.0  - hotfix, but "ugly one":

protected async Task ReloadGrid(int? xid)
{

GridData= await LoadDatafromservice<TItem>...;

GHL.Rebind(); //required, otherwise grid content(rows) is not update. Later the grid crash when selecting row etc. Old "rows" are still displayed;

}

Its weird to gues, where rebind is needed and where not. Previous versions acting as expected(async - task = no problem).
Make it documented, "what is correct" and when.

Or if it is a bug, please move it out from feature request.

Thanks

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
5 comments
ADMIN
Nadezhda Tacheva
Posted on: 31 May 2024 10:20

Hi Michal,

Thank you for the follow-up!

I confirm the problem is related to the aggregates and the regression that you've linked. I have marked the current item as a duplicate.

The regression has already been fixed and we are currently working on a patch version that we will soon release. Track the original item for updates.

Once you get the patch, you may remove the Rebind() call.

Regards,
Nadezhda Tacheva
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Michal
Posted on: 28 May 2024 15:08

Hello,

 yes there is runnable demo, how to reproduce:

 

REPL:

https://blazorrepl.telerik.com/Geufwdki04CFjFH119

taken from:

https://feedback.telerik.com/blazor/1652657-regression-grid-with-aggregates-never-loads-if-data-comes-asynchronously

 

reload v5 vs v6 buttons:

- v5 aproach is not refreshing grid row data at all(you can see it at column "Hire date")

 

ADMIN
Nadezhda Tacheva
Posted on: 28 May 2024 14:27

Hi Michal,

So far, we haven't received reports for such an issue and I will need some more information to evaluate it.

By design, the Grid will automatically update its data during runtime only if the data is an ObservableCollection. In any other case, one has to force the data refresh in any of the options listed here: Grid - Refresh Data. I can confirm the data is correctly refreshing on my end.

Can you please share an isolated runnable sample that replicates your configuration and reproduces the problematic behavior you are referring to?

You also mentioned an issue with the pre-selection but I am not able to reproduce that, too. Can you also demonstrate that problem in the sample?

Thank you in advance for your cooperation! I look forward to hearing from you!

Regards,
Nadezhda Tacheva
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Justin
Posted on: 24 May 2024 12:16
I have also found these same issues and just decided to roll back....
Michal
Posted on: 22 May 2024 18:11

+ also at first load, preselecting items is not highlighted as before.

so:

- groupped view, with data binding to variable = how to do it correctly at version 6+ ?

- refreshing grid data is acting differently = how to do it correctly at version 6+ ?

- preselected row is not higlighted at first load = how to do it correctly at version 6+ ?