A newer version of this page is available. Switch to the current version.

DevExtreme jQuery - Call Methods

To call a UI component method, you can apply techniques described in the Call Methods topic for jQuery.

As an alternative, you can save the UI component instance in a view model property once the UI component is initialized...

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


... and call any method of the saved instance afterwards.

See Also
  • API Reference.WidgetName.Methods, for example, API Reference.Menu.Methods