R1 2019 Release is here. See what's new!
Change Theme

SASS Themes

    LESS Themes

      SASS Theme Builder

      Create new or customize SASS themes
      Launch Theme Builder

      Dialog / MVVM

      Open or close the dialog




      Kendo UI Dialog supports events binding. The demo also implements a custom binder for its visible configuration option.


      The MVVM feature of the Kendo UI framework provides powerful two-way data binding capabilities, built on the popular Model-View-ViewModel concept. In this way you can easily make attribute values for widgets observable and modify them automatically when changes are applied in the data source, or alter the underlying data when the user interacts with the UI.

      In this example we show how to configure the Kendo UI Dialog to make use of the MVVM functionality exposed by the framework. For this purpose we create a viewmodel instance (with kendo.observable call), and instantiate the widget, its attributes and binding definition using data- attributes (on a div html element). The important detail to wire the viewmodel is to invoke kendo.bind to the container element of the dialog, passing the viewmodel as a second argument. Review the code snippets from the demo for more info.

      Details on the MVVM features of the Kendo UI framework can be obtained from this chapter of the documentation.

      HTML5/JavaScript source

      API Reference
      • mvvm.html
      • Widget configuration

      Support & learning resources

      Dialog for other technologies