1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    147
    Answers
    5
    Vote Rating
    2
    rafaelrp is on a distinguished road

      0  

    Default Answered: [MVC] How to get actioncolumn click event in controller using Component Query?

    Answered: [MVC] How to get actioncolumn click event in controller using Component Query?


    i'm trying to get the event using.
    Code:
    'servlist > item[action=edit]': {
    				click: this.openWindowEditServ
    			}
    but with no success...

  2. The actioncolumn doesn't have a click event I'm afraid. For each action item's handler you could fire an event on the actioncolumn itself using fireEvent() and you could then listen to the event on the actioncolumn in your controller.

  3. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Answers
    355
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      1  

    Default


    The actioncolumn doesn't have a click event I'm afraid. For each action item's handler you could fire an event on the actioncolumn itself using fireEvent() and you could then listen to the event on the actioncolumn in your controller.

  4. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    147
    Answers
    5
    Vote Rating
    2
    rafaelrp is on a distinguished road

      0  

    Default


    There another solution, putting an action to the action column..

    Code:
     {
    	        	xtype: 'actioncolumn',
    	        	width: 24,
    	        	action: 'edit',
    
    ......
    Controller

    Code:
    'servlist actioncolumn[action=edit]': {
    				click: this.openWindowEditServ
    			},
    And the fireEvent() works too!

    Thanks!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar