Hi, Is it possible to make the scrollbar not to scroll automatically when the new entries come in at the top. The scrollbar should stay at the data where the user is scrolled to even more data comes in.
For example:
private void OnTimer_Elapsed(object? sender, ElapsedEventArgs e)
{
InsertMoreData();
myGrid.Reload();
}
async protected override Task OnInitializedAsync()
{
dataToDisplay = myclass.Shared.Data.SampleData;
timer = new Timer();
timer.Interval = 3000;
timer.Elapsed += OnTimer_Elapsed;
timer.Enabled = true;
await base.OnInitializedAsync();
}
protected void InsertMoreData()
{
Story story = new Story { Time = DateTime.Now, Id = "AM-" + Counter, Content = "Test " + Counter };
dataToDisplay.Insert(0, story);
normalCount = dataToDisplay .Count;
Counter++;
}