onAfterColumnHide and onAfterColumn show not being fired

Hello,

I’m having the following problem:

When defining the headermenu of a datatable with some configurations as shown here, the onAfterColumnHide and onAfterColumnShow events are not fired, as you can see in this snippet: https://webix.com/snippet/e0632206 .

Another thing is, if I save the state of this table and try to reapply, the datatable beahaves normally (the state is set) but the columns that are hidden will shown with the eye icon in the header menu, as shown here: https://webix.com/snippet/d6201d0e

None of the behaviours described above occurs when setting headermnu to true, which will delegate to webix its creation.

Is this a normal behaviour, or is it a bug ?

OK. My bad for this one. This solves the first problem.

But second, even with the id’s, still happens.

Hello,

The event is not fired because the id is not set.
If you set the value of the column that working well.
https://webix.com/snippet/f5180c6e

The event occurs only when you hide or show column. If you don’t specify the column id that is not fire because no action is executed.

Regards

Hello,

I have reported the same type of error and if I understand that is normal. You need to report the change on the header menu.

https://forum.webix.com/discussion/5563/datatable-header-menu-doesnt-reflect-the-display-hiden-flag-of-column#latest

Regards,

Yeah, I just changed my code to use headermenu: false before seeing your message. Thanks for the help anyway.