beginUpdate()
Prevents the widget from refreshing until the endUpdate() method is called.
The beginUpdate() and endUpdate() methods prevent the widget from excessive updates when you are changing multiple widget settings at once. After the beginUpdate() method is called, the widget does not update its UI until the endUpdate() method is called.
See Also
- Call Methods: jQuery | Angular | AngularJS | Knockout | ASP.NET MVC
endUpdate()
Refreshes the widget after a call of the beginUpdate() method.
Main article: beginUpdate()
See Also
- Call Methods: jQuery | Angular | AngularJS | Knockout | ASP.NET MVC
getInstance(element)
getInstance is a static method that the widget class supports. The following code demonstrates how to get the LoadPanel instance found in an element with the myLoadPanel
ID:
- // Modular approach
- import LoadPanel from 'devextreme/ui/load_panel';
- ...
- let element = document.getElementById("myLoadPanel");
- let instance = LoadPanel.getInstance(element) as LoadPanel;
- // Non-modular approach
- let element = document.getElementById("myLoadPanel");
- let instance = DevExpress.ui.dxLoadPanel.getInstance(element);
See Also
hide()
A Promise that is resolved after the widget is hidden. It is a native Promise or a jQuery.Promise when you use jQuery.
show()
A Promise that is resolved after the widget is shown. It is a native Promise or a jQuery.Promise when you use jQuery.
toggle(showing)
A Promise that is resolved after the widget is shown/hidden. It is a native Promise or a jQuery.Promise when you use jQuery.
You can use the toggle(showing) method instead of show() and hide() methods. The only difference is that you specify whether to show or hide the widget passing true or false to the method parameter.
See Also
- Call Methods: jQuery | Angular | AngularJS | Knockout | ASP.NET MVC
If you have technical questions, please create a support ticket in the DevExpress Support Center.