DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Get a Widget Instance

To get a UI component instance, save it in a view model property once the UI component is initialized:

var viewModel = {
    menuInstance: {},
    menuOptions: {
        // ...
        onInitialized: function (e) {
            viewModel.menuInstance = e.component;    


Alternatively, you can apply techniques from the jQuery article.

See Also