Our pure JavaScript Scheduler component


Post by mpathella »

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
RowClick.PNG (112.65 KiB) Viewed 727 times

Post by saki »

Would https://bryntum.com/docs/scheduler/#Scheduler/view/Scheduler#event-selectionChange do? It fires for both cell and row change, distinguished by mode.


Post by mpathella »

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?


Post by Maxim Gorkovsky »

There's no such event, no. What exactly do you need that event for?


Post by mpathella »

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
ResourceRecordClick.PNG (275.52 KiB) Viewed 720 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
UnSelectingResourceRecord.PNG (76.74 KiB) Viewed 720 times

Post by mats »

Use cellClick and scheduleClick events yes!


Post by mpathella »

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?


Post by alex.l »

Hi, mpathella

scheduleClick is not preventable, but you could try the default JS method event.stopPropagation() in the scheduleClick handler.

All the best,
Alex


Post Reply