Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ng-grid paging
Message
De
24/10/2014 13:09:23
 
 
À
24/10/2014 11:19:08
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
Divers
Thread ID:
01609778
Message ID:
01609873
Vues:
33
>>>>This is an interesting question - the code in the controller is auto-generated (we then add more logic). Why it is set this way I am not sure myself.
>>>>
>>>>Also, yesterday I commented out the paging options and enablePaging and still the behavior was the same. So, the problem is not in the paging, the problem is that when my data change, somehow grid doesn't react and display them. Only by switching to dev tools I can get it to react to that new data set.
>>>
>>>In an MVVM situation which from my reading is what Angular Js is all about, for a control to update, it has to be notified that the underlying binding has been changed. In Silverlight/wpf that is handled by INotifyPropertyChanged and all works great. I'm sure there is a similar mechanism in Angular which you are not calling after mucking around with sort, etc.
>>
>>Yes, I was thinking about it too yesterday that I have to explicitly call something now. I'm going to do some research in this direction today.
>
>In Silverlight/wpf, when a property is SET, we raise the OnPropertyChanged event of INotifyPropertyChanged. When you create the properties or classes or whatever it is that angular uses in the viewmodel, is there a call to something to update the bindings?

No - it should be automatic - angular automatically creates a $watch() on relevant items....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform