4 Answers, 1 is accepted
You could run through "Real time update" demo of RadGridView. If you do not update the items, bur rather insert new ones, why now working with AddRange method of your source collection. If you work with RadObservableCollection<T> for example, AddRange will suspend all notifications and resume them afterwards, thus improving the performance.
Regards,
Maya
Telerik
See What's Next in App Development. Register for TelerikNEXT.
Hello! Suspend notification best sulution for realtime. Thanks for the help. My program now worked fast, but operation system slow.
I builded pipe of the flow of data very wide and fast:)
Hello! I try Telerik, send me help where update item[0] (public void AddTape(Tick tick))
public class TRDataContext
{
ObservableCollection<Tape> source;
ObservableCollection<Tape> Source
{
get
{
if (this.source == null)
{
source = new ObservableCollection<Tape>(from i in Enumerable.Range(0, 10) select new Tape(new Tick()));
}
return source;
}
}
QueryableCollectionView data;
public QueryableCollectionView Data
{
get
{
if (this.data == null)
{
this.data = new QueryableCollectionView(Source);
this.data.SortDescriptors.Add(new SortDescriptor()
{
Member = "Time",
SortDirection = System.ComponentModel.ListSortDirection.Descending
});
}
return this.data;
}
}
public void AddTape(Tick tick)
{
Tape mm = new Tape(tick);
Source[0] = mm; //this not update visual grid
}
}
You need to update the properties of the item instead and if the business object implements INotifyPropertyChanged interface, the modifications will be reflected right away.
Regards,
Maya
Telerik
See What's Next in App Development. Register for TelerikNEXT.