Datatable Event "After Options loaded"

Hi,

I have a datatable filled with a data collection with two columns (select), which are filled with options (loaded via a php-connector to a mysql-database). As first the datatable is filled with the datacollection and afterwards the options are loaded, I want to include a progress bar, which hides after the collections are loaded. Is there a event for "after options loaded"?

Thanks, Martin

Comments

  • Nope, there is no event. Still, each component provides a promise, so, assuming that you have a datatable and collections data1 and data2, you can use code like following.

    webix.promise.all([
      datatable.waitData, data1.waitData, data2.waitData
    ]).then(function(){
        //all is ready
    });
  • Hi Maksim,

    thanks a lot! Great solution!

    Thanks, Martin

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion