PDA

View Full Version : [CLOSED] CalendarPanel - Edit appoint with doubleclick



supera
Jun 20, 2012, 7:25 PM
Hi

I wish that add/edit appoint in CalendarPanel with double click, and not with one click!

Its possible?

Thanks for any help!

Daniil
Jun 20, 2012, 9:52 PM
Hi,

I think it's possible.

The simplest/fastest way I can see is:

Example

Ext.calendar.view.AbstractCalendar.override({
afterRender: function() {
Ext.calendar.view.AbstractCalendar.superclass.afte rRender.apply(this);

this.renderTemplate();

if (this.store) {
this.setStore(this.store, true);
}

this.on('resize', this.onResize, this);

this.el.on({
'mouseover': this.onMouseOver,
'mouseout': this.onMouseOut,
'dblclick': this.onClick, // "click" replaced with "dblclick"
scope: this
});

this.el.unselectable();

if (this.enableDD && this.readOnly !== true && this.initDD) {
this.initDD();
}

this.on('eventsrendered', this.forceSize);
Ext.defer(this.forceSize, 100, this);
}
});

supera
Jun 21, 2012, 3:02 PM
Hi Daniil!

Works very fine!

Thanks a lot