Show cool things you have done with our products


Post by julicious »

Hi All,

Would like to ask is there a limitation on using the EventEditor on SchedulerGrid when config is set to mode:"calendar".

After re configuring the example, the event editor form won't show and when dragging events to other part of the grids, the event item won't stick back to the grid.


Hope you guys can help here.

Thanks!

Post by Maxim Gorkovsky »

Eventeditor example has few tweaks that cannot be used from scratch with calendar view.

First of all, forceFit option has to be removed, as well as columns config from DemoScheduler (it doesn't make sense for calendar view).

Drag create feature is broken, because new event in calendar doesn't have a resource. In weekview example we made a resource picker, that allows to assign resource to new event. In order to fix it, do the following:
1) from weekview example copy resourcepicker and beforedragcreatefinalize listener, this is required to pick resource for created event
2) find resourceField combobox in resource picker and set valueField to resource model id field (in event editor example it's changed to YourIdField)

Dragdrop feature also revealed a bug in our component, I made a ticket to track it: https://www.assembla.com/spaces/bryntum/tickets/2317

In the meantime, to fix dragdrop add following listener:
// find this line, insert listener after
var ds = Ext.create('App.DemoScheduler', {....});

resourceStore.on('load', function () { ds.getSchedulingView().refresh(); });

Post Reply