Our pure JavaScript Scheduler component
Previously we are using Bryntum Scheduler with Ext JS and we are using 'rowClick' event for one of the action in our bryntum scheduler component.
Right now we are migrating to pure new Bryntum Scheduler functionality.in our case 'cellClick' is firing when we click on Resoure record row in any ware. Do we have any only Resource Click Event instead of whole row selection like old situation?
- RowClick.PNG (112.65 KiB) Viewed 728 times
ok.will try to implement it.one more thing i forgot to mention is that in previous bryntum scheduler (with Ext JS) we used 'beforeCellClick' event function by returning false to prevent 'CellClick' event to process for some testcases.in new Bryntum scheduler do we have similar action like 'beforeCellClick' is available to use?
There's no such event, no. What exactly do you need that event for?
Actual usecase is like below, when we click resource record we will open the one panel right side of the scheduler to edit and save the resource record.for this we can use CellClick Event right?
- ResourceRecordClick.PNG (275.52 KiB) Viewed 721 times
other usecase is like, when we click on anyware scheduler timeline area we need to deselect the Resource record and Edit Panel will be closed.for this action which Event we can use?
[/attachment]t=1]ResourceRecordClick.PNG[/attachment]
-
Attachments
-
- UnSelectingResourceRecord.PNG (76.74 KiB) Viewed 721 times
Use cellClick and scheduleClick events yes!
ok.but after we click on anyware scheduler timeline area scheduleClick is calling first and immediately cellClick also calling.so, in my case cellClick should not called again.how to prevent this cellClick event we click on anyware scheduler timeline area?
Hi, mpathella
scheduleClick
is not preventable, but you could try the default JS method event.stopPropagation()
in the scheduleClick handler.