Help us shape the 2021 DevExtreme Roadmap. Take our 5 minute survey.
Dismiss

Access a Widget

To access a UI component, you need to obtain its instance first. Note that the variable that will contain the UI component instance should have a DevExpress.viz.WidgetName or DevExpress.ui.WidgetName type. For example, see how you can obtain the instance of a Chart UI component.

var chartInstance: DevExpress.viz.dxChart;
chartInstance = $('#chartContainer').dxChart('instance');

Now that you have the UI component instance, use jQuery to get and set UI component options, call methods or handle events.