1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    163
    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
    5,415
    Answers
    434
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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
    163
    Answers
    5
    Vote Rating
    2
    rafaelrp is on a distinguished road

      1  

    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