Force SfDatagrid Calculation Summary

I ave an sfdatgrid that i load more tiems with new items.
After the first time a load it the colum summary do not update themself, there's a way to force it?
Alberto C.

3 Replies

JA Jayaraman Ayyanar Syncfusion Team March 8, 2018 09:09 AM UTC

Hi Alberto, 
 
Thanks for contacting Syncfusion Support.  
 
We have checked your query and it can achieved by setting the SfDataGrid.LiveDataUpdateMode property to AllowDataShaping which will update the summary instantly after the loading Loadmore items populated in the grid. 
 
 
Code logics for C# 
 
  public partial class MainPage : ContentPage 
    { 
        public MainPage() 
        { 
            InitializeComponent(); 
            dataGrid.LiveDataUpdateMode = LiveDataUpdateMode.AllowSummaryUpdate; 
            dataGrid.AllowLoadMore = true; 
            dataGrid.LoadMoreCommand = new Command(ExecuteLoadMoreCommand); 
 
 
        } 
         
        private async void ExecuteLoadMoreCommand() 
        { 
            this.dataGrid.IsBusy = true; 
            await Task.Delay(new TimeSpan(0, 0, 5)); 
            viewModel.LoadMoreItems(); 
            this.dataGrid.IsBusy = false; 
        } 
    } 
 
 
We have also prepared a sample based on your requirement and you can download the same on the below link: 
 
Note: If you are not using the latest version of SfDataGrid then you may have to set this property as SfDataGrid.View.LiveDataUpdateMode.  
 
Regards, 
Jayaraman. 



AL Alberto March 8, 2018 09:56 AM UTC

Thnak Jayaraman for the solution that, i can tell you that is working.

Regards 
Alberto C.


JA Jayaraman Ayyanar Syncfusion Team March 9, 2018 03:52 AM UTC

Hi Alberto, 
 
Thanks for the update. 
 
Please let us know if require any further assistance. 
 
Regards, 
Jayaraman. 


Loader.
Up arrow icon