Datatable and onViewShow event

Hi webix team,
in my Code Snippet I have a Datatable in a Window and need a onShowEvent on the Datatable but this don’t work. Please advice.

Hi,
The visibility of the views inside the window body depends on the window, not the views themselves. That is why onViewShow event won’t work this way as the datatable was not hidden first.
However, you can put your datatable in a layout (inside the window body) and then you will be able to control the visibility. For instance, you can show hidden datatable after button click to catch the onViewShow event
Please, check the snippets:
https://snippet.webix.com/uptab48x
https://snippet.webix.com/hnxz70k5