Our pure JavaScript Scheduler component


Post by sachidanand »

Hello Team,

I would like to perform some action based on hide and show of the columns for which we already have the documentation here.
https://bryntum.com/docs/scheduler/api/Grid/data/ColumnStore#event-columnShow

But when I included these events in bryntum-scheduler listeners it didn't work.
Could you please let me know where should I include these events so that it will get fired on column select or unselect.


Post by mats »

Please show your code where you try to listen to these events?


Post by sachidanand »

Hello Mats,

First of all sorry for the late response.
Please find the attached folder which shows where we are using "ColumnShow" and "ColumnHide".

Please let me know where I am going wrong.

Attachments
scheduler.zip
(919.72 KiB) Downloaded 40 times

Post by Animal »

The event is fired on the ColumnStore. See https://bryntum.com/docs/scheduler/api/Grid/data/ColumnStore#event-columnShow

And https://bryntum.com/docs/scheduler/api/Grid/view/Grid#config-columns

So:

columns : {
    data : [{
        text  : 'Header',
        field : 'theField'
    }],
    listeners : {
        columnShow() { console.dir(arguments); }
    }
}

Post Reply