Any onAfterShowCell event?

Hi,
My team and I need to perform some tasks after the call to webix’s showCell function. It turns out that showCell will issue scroll event asynchronously, so right now we use settimeout to postpone the tasks we want to perform which is not desired. Is it possible that showCell can return us a promise or something similar?

Thank you.

showCell changes the scroll state of datatable in sync. way, but it doesn’t trigger the data rendering directly ( data rendering will be triggered by onScroll event )

Anyway, you can use

dt.showCell(some);
dt.refresh(); //force repainting
any_other_logic();

Thank you for your reply maksim,

We try to listen to javascript’s scroll event and we notice that once showCell is called, the callback for javascript’s scroll event get triggered multiple times asynchronously. When you say “in sync. way”, do you mean for webix’s scroll event? In our case, we must listen to the javascript’s scroll event, so is there a way to determine when the scroll event is completed? Thanks.

Are you using dynamic loading by any chance?

By default there is no async. delay between showCell call and moment when new UI is rendered.

http://webix.com/snippet/ccb18ea0