I have a EjsListView that I am trying to dynamically update. I am adding items to the DataSource list in code using the .Add() function of a list like so (where CheckoutItems is a list variable data source for the ListView):
var newItem = new CheckoutItem { Id = item.Id, Name = item.Name, Quantity = 0 };
this.CheckoutItems.Add(newItem);
The above statements do not yield any visible update when bound to a button press or any other event. I can see the changes in the datasource in the debugger though. Interestingly, when I completely redeclare the data source my changes do appear in my EjsListView, like so:
this.CheckoutItems = new List<CheckoutItem> {
new CheckoutItem { Id = 20, Name = "name1", Quantity = 0 },
new CheckoutItem { Id = 21, Name = "name2", Quantity = 0 },
new CheckoutItem { Id = 22, Name = "name3", Quantity = 0 },
};