Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo UI - Difference between observable, ObservableObject and Model

What are the differences between the observable, ObservableObject and Model? Thank You.

like image 719
Johny Boy Avatar asked Nov 27 '13 15:11

Johny Boy


People also ask

What is Kendo observable?

ObservableObject is an important part of the Kendo UI MVVM framework, specifically of the View-Model. It supports change tracking and notifies any subscribers when a change occurs. All View-Model objects inherit from kendo. data.

What does kendo bind do?

Binds a HTML View to a View-Model and initializes Kendo UI widgets from DOM elements based on data-role attributes, similar to kendo. init(). Model View ViewModel (MVVM) is a design pattern which helps developers separate the Model from the View.


1 Answers

Model inherits from ObservableObject which inherits from Observable.

  • Observable provides support for events - the bind, unbind and trigger methods.
  • ObservableObject provides change tracking. Used by the DataSource and the MVVM framework.
  • Model provides identity (via the id field) and field definition. Used by the DataSource when schema.model is set.
like image 133
Atanas Korchev Avatar answered Nov 15 '22 03:11

Atanas Korchev