[CLOSED] CalendarPanel - Edit appoint with doubleclick

  1. #1

    [CLOSED] CalendarPanel - Edit appoint with doubleclick

    Hi

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

    Its possible?

    Thanks for any help!
    Last edited by Daniil; Jun 21, 2012 at 5:01 PM. Reason: [CLOSED]
  2. #2
    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.afterRender.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);
        }
    });
  3. #3
    Hi Daniil!

    Works very fine!

    Thanks a lot

Similar Threads

  1. Replies: 2
    Last Post: Jul 02, 2012, 6:15 PM
  2. [CLOSED] [1.0] CalendarPanel
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 15, 2011, 11:40 AM
  3. [CLOSED] Is it possible to handle doubleclick event on a tab
    By anup in forum 1.x Legacy Premium Help
    Replies: 17
    Last Post: Feb 02, 2011, 6:47 PM
  4. [CLOSED] Tree doubleclick (dblclick) event does not fire
    By jchau in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 01, 2010, 4:56 PM
  5. How to add a doubleclick event in texfield?
    By Barbar in forum 1.x Help
    Replies: 0
    Last Post: Oct 17, 2008, 12:58 PM

Posting Permissions