We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Refresh not working and Grid doesn't update showed data

Thread ID:





150890 Aug 21,2019 12:49 PM UTC Jan 23,2020 02:12 PM UTC Xamarin.Forms 3
Tags: SfDataGrid
Asked On August 21, 2019 12:49 PM UTC

I noticed with the latest update I can't refresh anymore grid.
I have grid.DataSource=list where list is a list<T>. 
If after the loading I add a new item in list, I can see there is a new item also in grid.DataSource, but grid doesn't show it.
Is there something I am missing? Before with a grid.Refresh the grid was showing all the changes

Vignesh Natarajan [Syncfusion]
Replied On August 22, 2019 10:44 AM UTC

Hi Elio,  

Greetings from Syncfusion support.  

Query: “Grid Refresh not working and Grid doesn’t show updated data” 
In our latest Nuget release (17.2.46) we have upgraded our components to .Net Core 3.0 Preview 8 Build. Due to this we have some breaking changes in our controls. (i.e) There is a break in the @ref functionality in Blazor with Preview 8. If you are accessing our component instance in code behind using @ref, you need to define both @ref and @ref:suppressField in all component’s tag-helper as shown in the below code snippet. Please refer to this GitHub thread for more information. 
 <EjsGrid @ref="@DefaultGrid" @ref:suppressField > </EjsGrid> 

Kindly refer our release notes for your reference 

So after upgrading to our latest version (17.2.46) also you can refresh the Grid by defining the @ref as mentioned above. We have prepared a sample as per your requirement (to add a new list to data and refresh the Grid) which can be downloaded from below  

Please get back to us if you have any queries.  

Vignesh Natarajan.

Derek Mitchell
Replied On January 22, 2020 01:59 PM UTC

Hi there

Does this affect Android as well?

I am experiencing this bug too on the mobile application where the sfDataGrid is not showing all the rows after a refresh.

Actually after further testing it is only when the grid is scrolled all the way to the right and the user returns to it from another activity.

If I scroll left the rows reappear.

Deepika Balasubramaniyan [Syncfusion]
Replied On January 23, 2020 02:12 PM UTC

Hi Derek Mitchell, 
Based on provided information, we have checked your query “Grid not showing all the rows after a refresh” and unable to replicate the issue from our end. After add the row when refresh action is performed, all rows are in visible and scrolling also working fine as expected.  Hence we have prepared the sample to achieve your requirement.  For further details you can refer the sample from below link. 
If the sample doesn’t your requirement, kindly modify the sample based on your scenario and revert us back with replication procedure, it will be helpful for us to give you a better solution. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon