2013-12-23 2 views
-1

내 postfield 필드에 datefield에서 호출해야하는 Afterrender 이벤트가 있습니다. 그러나 렌더링되지 않으므로 Afterrender 이벤트가 작동하지 않습니다. 이유가 무엇입니까? 당신은 당신의 코드에서 오타가Datefield가 완전히 렌더링되지 않습니다 - extjs4.2.2

this.activityFormPanelEdit = Ext.create('Ext.form.FormPanel', { 
     xtype: 'form', 
     autoRender: true, 
     layout: { 
      align: 'stretch', 
      type: 'vbox' 
     }, 
     header: false, 
     pollForChanges: false, 
     items: [{ 
      xtype: 'form', 
      layout: { 
       align: 'stretch', 
       type: 'hbox' 
      }, 
      items: [ 
       { 
        xtype: 'datefield', 
        name: 'reminderDate', 
        itemId: 'reminderDate', 
        fieldLabel: 'Erinnerung am', 
        padding: '10', 
        style: 'background-color: red', 
        disabled: true, 
        listener: { 
         afterrender: function (c) { 
          c.inputEl.on('dblclick', function() { 
           c.setValue(new Date()); 
          }); 
         } 
        } 
       }] 
     }] 
+0

이 질문은이 코드의 간단한 오타에 대해 때문에 tritrotrash –

답변

관련 문제