Live Sort

Hi I have a item source for sfdatagrid that has a new item added to it ever 30 seconds but the ui is not updating even when I do 
        dataGrid.LiveDataUpdateMode = Syncfusion.Data.LiveDataUpdateMode.AllowDataShaping;
Attaching my code with the ticket

Attachment: MainActivity_920ad820.rar

1 Reply 1 reply marked as answer

SS Sivaraman Sivagurunathan Syncfusion Team July 23, 2020 07:32 AM UTC

Hi Shafaq, 

Thanks for using Syncfusion controls. 

We have checked the reported issue and attached code snippet form our side. To achieve you requirement, you need to add the items in main thread. So that, only the UI got update in View.  
We have prepared the sample based on your requirement and attached for you reference. You can download the same from the below link. 


private void Timer_Tick(object sender, ElapsedEventArgs e) 
{ 
    this.RunOnUiThread(new Runnable(orderI.AddMore){ }); 
} 




Regards, 
Sivaraman S

Marked as answer
Loader.
Up arrow icon