Duplicated
Last Updated: 02 Mar 2020 13:30 by ADMIN
Igonik84
Created on: 30 Jul 2019 13:01
Category: UI for Blazor
Type: Feature Request
2
Grid. INotifyCollectionChanged data source

What about supporting INotifyCollectionChanged data source for the Grid?

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
3 comments
ADMIN
Marin Bratanov
Posted on: 31 Jul 2019 09:59
Hello,

This request is marked as declined only to avoid duplication and clutter, support for INotifyCollectionChanged will be implemented for our next feature release.  Please follow the other item to get notifications.

There are other important scenarios that also need to be handled and the solution is not simply attaching to the change event of the collection. Here are two examples:

  • Not everyone uses observable collections.
  • Sometimes a simple List<T> will be modified and the grid can't know about this even if it implements INotifyCollectionChanged. This is often used in custom/external edit forms/scenarios.
  • Manual operations on the data as shown here, need a way to be triggered externally.

 


Regards,
Marin Bratanov
Progress Telerik UI for Blazor
Igonik84
Posted on: 31 Jul 2019 07:58

@Martin, INotifyCollectionChanged should be primary scenario for the following reasons:

1)
INotifyCollectionChanged support is already implemented in WPF and Xamarin
2)
INotifyCollectionChanged allows to use custom implementation (or 3-rd party) of  filtering, sorting and requesting of data

Regards to filtering and sorting see my project: https://github.com/IgorBuchelnikov/ObservableCalculations

  • Добавить в Словарь
    • Новый список слов для Английский -> Русский...
    • Создать новый список слов...
  • Копировать
  • Добавить в Словарь
    • Новый список слов для Английский -> Русский...
    • Создать новый список слов...
  • Копировать
  • Добавить в Словарь
    • Новый список слов для Английский -> Русский...
    • Создать новый список слов...
  • Копировать
ADMIN
Marin Bratanov
Posted on: 31 Jul 2019 05:22
Hi,

This is already logged in the following page and we have it under consideration (I have already added your Vote for it, you can also Follow it): https://feedback.telerik.com/blazor/1409112-the-grid-does-not-update-on-data-source-change.

Whether such an interface, or a method like .Refresh() will be implemented on the grid is too early to say, as we have a lot of scenarios to consider (including, for example, manual filtering, sorting and requesting of data).

Thus, I am closing this as a duplicate of the other one.


Regards,
Marin Bratanov
Progress Telerik UI for Blazor