Hello,
I want to use a custom url proxy object in datatable in combination with a progress bar. But i cannot get it working, because the load functionality will be immediately called at initialization. At this moment the datatable wasn´t extended with the progress bar cause it can only be done in the next line of code.
I did attach to the onBeforeLoad event to show progress bar.
Snippet: Code Snippet
Thanks
you can ‘auto’ extend ALL datatables with this code
webix.extend(webix.ui.datatable, {
showProgress: function(){
return webix.ProgressBar.showProgress.call(this, webix.copy(this.config.progressConfig||{}));
},
hideProgress: function(){
return webix.ProgressBar.hideProgress.call(this, true);
}
});
webix.extend(webix.ui.datatable, webix.ProgressBar);
https://snippet.webix.com/msuf699w
and no need to call showProgress / hideProgress explicitly
Thank you very much.