Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    183
    Answers
    6
    Vote Rating
    2
      0  

    Default 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
    6,154
    Answers
    501
    Vote Rating
    247
      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
    183
    Answers
    6
    Vote Rating
    2
      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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •