Syncing dynamic datatable with list

https://snippet.webix.com/99ffl9xf

Scrolling inside the list doesn't load new data.

I worked around this issue with a custom component https://snippet.webix.com/zhcdyq86
However I had to use private properties.
Is there a possibility to sync a dynamic datatable with a list without using private properties or is it planned as a new feature in the near future?

Comments

  • edited August 10

    Hello,

    Normally, the slave widget should not influence the master one in this way.

    But you can force the datatable to scroll (and hence load the data) by:

    view:"list",
    onAfterScroll:function(){ 
        var state = this.getScrollState();
        $$("table").scrollTo(state.x, state.y);
    }
    

    https://snippet.webix.com/fgstf2mq

  • Just saw that it's actually working without the private Properties. Not sure why I used them in the first place.

    Working snippet: https://snippet.webix.com/d0ks898n

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!

In this Discussion