RadDatagrid not refreshing the data on iOS

1 Answer 62 Views
Miscellaneous
Rhea
Top achievements
Rank 1
Rhea asked on 30 Aug 2023, 02:23 PM

Hello,

We are building an iOS application in which we are using Telerik's Xamcontrols. On a page we have used a RadDatagrid control, to it a observersable collection/list is binded. When the page is launched the data in the list is displayed properly on the RadDatagrid. We have a functionality such that user can delete the records from the list. On deleting the records are removed from the Observable collection, also the collection shows correct data. However on the Rad Data grid, the updated collection list is not showing, it shows the blank list.  Is there any method to refresh or rebind the collection to the grid?

Didi
Telerik team
commented on 31 Aug 2023, 06:35 AM

Hi,

We are not aware of such behavior. If the ItemsSource is bound to observable collection, then you can set the binding mode to two way and check whether this will solve the issue. Also you can use a dispatcher as it could be a timing issue. 

If you can send us an isolated project where the issue occurs, we can research the case further.

1 Answer, 1 is accepted

Sort by
0
steve
Top achievements
Rank 1
answered on 06 Oct 2023, 07:41 AM

To refresh Telerik's RadDataGrid after deleting records from an ObservableCollection in your iOS app:

  1. Update the ObservableCollection.
  2. Implement INotifyPropertyChanged.
  3. Remove the item, notify the change, and refresh the grid using ReloadData().
Tags
Miscellaneous
Asked by
Rhea
Top achievements
Rank 1
Answers by
steve
Top achievements
Rank 1
Share this question
or