1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    19
    Vote Rating
    0
    suraj.breezy is on a distinguished road

      0  

    Default None of the events are firing

    None of the events are firing


    Hello All,

    I am using Senchatouch 2. I have created a sample App which has a panel and few items in it. I am able to view these components, however none of the events are getting triggered. I am not able to traverse through the "NestedList" even. There are no "Error". What could be wrong? Please help me.

    Here is the code snippet which i am using

    Code:
     container=Ext.create('Ext.Panel',{
           fullscreen: true,
           layout: {
            type: 'hbox',
            align: 'stretch'
           },
           defaults: {
                flex: 1
           },
           dockedItems:[{
                      xtype: 'toolbar',
                      title: '',
                      docked: 'top',
                      items: [{
                        xtype: 'button',
                        id: 'btn_NewRun',
                        text: 'New Run',
                        handler: function(){
                            newRunForm.show();
                        }
                      },
                      {
                        xtype: 'button',
                        text: 'New Map',
                        id: 'btn_NewMap',
                        handler: NewMapHandle
                      },
                      {
                        xtype: 'button',
                        text: 'Test',
                        id:'btn_Test',
                        listeners:
                    		{
                    			onclick: function(btn){
    				                alert('hi');
                    			}
                            }
                      }]
                    }],
           items: [{
                    xtype: 'nestedlist',
                    id: 'visfolderlist',
                    title: 'Folders',
                    displayField: 'text',
                    store: window.visManagerFactory.folderStore,
                    flex:1
                },
                {
                    xtype: 'tabpanel',
                    id: 'imagepanel',
                    flex:4,
                    items:[{
                        xtype: 'panel',
                        title: 'Map One',
                        html: '<div id="svgparent"></div>'
                    }]
                }]
        });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,811
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    1. Always wrap your code in BBCode code tags (either by typing it or using the toolbar item)... I have edited your post so that I can read your code
    2. What events are firing? The onclick event? If so, There is no onclick event at all so I wouldn't expect it to fire.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Instead of using 'on click', use 'tap'.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Thread Participants: 2

Tags for this Thread