• bind (element, viewModel, namespace)
    Binds a tree of HTML elements to a View-Model

    Binding all children of the BODY to a View-Model

    var viewModel = {
         firstName: "John",
         lastName: "Bar"
    };
    
    kendo.bind($("body"), viewModel);

    Parameters

    element: String|Selector|Node
    The root element(s) from which the binding starts. Can be a valid jQuery string selector, a DOM element or a jQuery object. All child elements are traversed.
    viewModel: Object
    The View-Model which the elements are bound to.
    namespace: Object
    Optional namespace too look in when instantiating Kendo widgets. The possible values are kendo.ui and kendo.mobile.ui. The default value is kendo.ui
  • unbind (element)
    Unbinds a tree of HTML elements from a View-Model.

    Unbinding all children of the BODY to a View-Model

    kendo.unbind($("body"));

    Parameters

    element: String|Selector|Node
    The root element(s) from which the unbinding starts. Can be a valid jQuery string selector, a DOM element or a jQuery object. All child elements are traversed.