numenory
11 Jun 2013, 3:05 AM
Again excuse my poor explanation, but i want to attach a click listener to the 'Sort Ascending' / 'Sort Descending' menu item found on the standard menu on a grid column header.
I have an MVC app and i can attach a listener thus in the controller:
this.control({
'menu' : {
click: this.doAFunction
}
})
This will however obviously trigger for any menu on the page, I have been trying to attach it to the grid panel, really to its header, but i cannot find the solution.....
My view is defined...
Ext.define('App.view.orders.Grid' ,{ extend: 'Ext.grid.Panel',
alias : 'widget.orderList'
.......
And in the controller I can get things to work like:
'orderList' : { headerclick: this.headerClickFunc,
},
'orderList button' : {
click: this.buttonFunc
}
Lee
I have an MVC app and i can attach a listener thus in the controller:
this.control({
'menu' : {
click: this.doAFunction
}
})
This will however obviously trigger for any menu on the page, I have been trying to attach it to the grid panel, really to its header, but i cannot find the solution.....
My view is defined...
Ext.define('App.view.orders.Grid' ,{ extend: 'Ext.grid.Panel',
alias : 'widget.orderList'
.......
And in the controller I can get things to work like:
'orderList' : { headerclick: this.headerClickFunc,
},
'orderList button' : {
click: this.buttonFunc
}
Lee