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,422
    Vote Rating
    1271
      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!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  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
  •