Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2007
    Posts
    118
    Vote Rating
    0
    stratboogie is on a distinguished road

      0  

    Default Controller Event question

    Controller Event question


    hello,
    I am creating a Ext.Application that creates a Viewport that Contains a view of aPanel (MainPanel). In defining the Application I give the controllers. inside my panel I have a tbar that has a menu of buttons like so:

    Code:
    tbar: [
    		{
    			text: "Action Menu",
    			menu: [{ text: 'InstructionManagement', action: '1' }, { text: 'ProductManagement', action: '2' }]
    		}
    	]
    In the controller for the MainPanel, I can capture the events for the Panel and any buttons I directly place in the panel, or on the tbar. but what I cannot capture are the events from the buttons inside the menu.

    I have tried:

    Code:
    'MainView > menu button[action=1]': {
    				click: this.showInstructionManagement
    			}
    'MainView > tbar > menu button[action=1]': {
    				click: this.showInstructionManagement
    			},
    'MainView button[action=1]': {
    				click: this.showInstructionManagement
    			},
    but none of those works. Can someone please tell me the proper way to do this.

    thx
    Timothy

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    118
    Vote Rating
    0
    stratboogie is on a distinguished road

      0  

    Default


    Any suggestions?

  3. #3
    Sencha User atian25's Avatar
    Join Date
    Oct 2008
    Location
    china
    Posts
    114
    Vote Rating
    2
    atian25 is on a distinguished road

      0  

    Default


    MainView ?

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    118
    Vote Rating
    0
    stratboogie is on a distinguished road

      0  

    Default


    Yeah, MainView is the alias to my Panel. I can create even handlers via the controller for the MainPanel and buttons placed directly on the "MainPanel" but I havent figured out to access them when they are nested inside a tbar and menu.

  5. #5
    Sencha User atian25's Avatar
    Join Date
    Oct 2008
    Location
    china
    Posts
    114
    Vote Rating
    2
    atian25 is on a distinguished road

      0  

    Default


    alias:'widget.MainView' ?

  6. #6
    Sencha User
    Join Date
    Sep 2007
    Posts
    118
    Vote Rating
    0
    stratboogie is on a distinguished road

      0  

    Default


    Yes, that is the alias I give my Panel in the view. And when I attach event listeners in the controller they work using: "MainPanel": evenname: methodtocall. But the problem lies in when I try to attach an eventlistener to a menu button contained in the menu in the tbar of the MainPanel. make sense?

Similar Threads

  1. Event Question
    By Bleak in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 8 Jun 2010, 11:10 AM
  2. Event Question
    By Bleak in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 6 May 2010, 6:51 AM
  3. Grid Sort - Disabled by Controller-Event
    By Michi_de in forum Ext GWT: Help & Discussion (1.x)
    Replies: 15
    Last Post: 11 Dec 2008, 2:23 AM
  4. event question?
    By skyey in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 20 Jun 2007, 3:44 AM
  5. loading event question
    By heidtmare in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 14 Apr 2007, 1:21 AM

Thread Participants: 2