Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Formpanel Events don't work when using itemID/delegate

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #11
    Sencha User
    Join Date
    Mar 2009
    Posts
    227
    Vote Rating
    3
      0  

    Default

    ok i believe i've found the issue.

    i have to define the itemId only when calling the component not when i'm creating it.

    meaning:

    Code:
    Ext.define('PrimaveraWebUI.view.EditorCabecDoc', {     extend: 'Ext.form.Panel',     alias: 'widget.editorcabecdoc',      config: {         items: [],         listeners: [             {                 fn: 'onCabecDocActivate',                 event: 'activate'             }         ]     },      onCabecDocActivate: function(container, newActiveItem, oldActiveItem, options) {         console.debug('nice');     }  });
    and then

    Code:
    ...
                {
                    xtype: 'editorcabecdoc',
                    itemId: 'CabecDoc',
                    title: 'Cabealho'
                },
                {
                    xtype: 'editorlinhasdoc',
                    itemId: 'LinhasDoc',
                    title: 'Linhas'
                }
    ...
    does that make sense?

  2. #12
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Your code will look for any child items with the itemId of 'test' but you have no child items with an itemId of 'test'. Your tab panel does but not any child items.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #13
    Sencha User
    Join Date
    Mar 2009
    Posts
    227
    Vote Rating
    3
      0  

    Default

    ic...noob problem

    thank you for your time mate

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •