1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Bangalore
    Posts
    26
    Vote Rating
    0
    khushkedia is on a distinguished road

      0  

    Default Unanswered: datepickerfield cancel button not handled

    Unanswered: datepickerfield cancel button not handled


    Hi,

    I have used this code to get a datepicker field.


    case 'Date':
    console.log('date value: '+value);
    var dt = new Date(value);
    console.log('new date: '+dt);
    if (dt == 'Invalid Date' || dt == 'NaN/NaN/0NaN') {
    value = '';
    }
    else { value = dt; }
    element = Ext.create('Ext.Container', {
    layout : 'hbox',
    items : [
    { xtype : 'datepickerfield',
    label : label,
    name : 'standTimeEdit',
    defaultDateFormat : 'D M Y',
    value : value,
    width : '100%',
    style : 'border: 0px solid gray;border-radius:10px',
    listeners:
    { change:function(){ value = dt; },
    cancel:function(){ console.log('cancel event fired'); }
    }
    }
    ] });
    break;

    However I dont have a handle to the cancel button in this field. How can i achieve that?
    Last edited by khushkedia; 10 Jan 2013 at 5:23 AM. Reason: edited

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Could you please post your uncompressed code wrapped into the code tags?
    Thank you.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."