Hi all, haven't been able to find anything related to this after extensive search of the forums and API docs. So thought of asking over here -
I have a paging toolbar attached to bbar for a grid. Now, when the refresh button(in the paging toolbar) is clicked, I would like to fire off an event. Now, how does one do that?
I can see that the paging toolbar has a listener, but none of the listed events are associated with the refresh button.
Was thinking of doing something similar to - Jay's Life :::: Refresh // Ajax 부분 새로 고침 아이콘 생성 => 팝에디터 => Tooltip Reflector .. Click the "Crop" button and let Ajax send crop data to the server and the http://jay.local.pe.kr/jay/category/WEB DEVELOP/AJAXHOME |
this.bbar = new Ext.PagingToolbar({
pageSize: 5,
store: this.store,
displayInfo: true,
displayMsg: 'Displaying rows {0} - {1} of {2}',
emptyMsg: "No topics to display",
listeners: {
clickrefreshbutton: function () {this.fireEvent('refreshed');}
}
});
Ext does not provide any custom events for refresh individually. Take a look at the source of PagingToolbar and examine the onClick method.
You could override this method to perform the actions you want. Including firing a new event called refresh.
Currently PagingToolbar only has a beforechange and a change event.
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |