Auto-Wiring for Panel Events

Standard panels also expose events that are not tied to specific action buttons, but are raised by the panel as a whole. For example, the Grid panel exposes the afterRefresh event that is raised after the grid data records are refreshed from the server. The controller can define event listeners for panel events:

afterViewLoad: function() {
// add the callback function as a listener to the Next button
this.requestGrid.addEventListener('afterRefresh', this.requestGrid_afterRefresh, this);
},
requestGrid_afterRefresh: function() {
this.requestTabs.disableTab('Review');
}

Again, if the event listener function name matches the " panelId_eventType " pattern, the controller will automatically call it:

afterViewLoad: function() {
},
// this event listener is auto-wired due to naming convention
requestGrid_afterRefresh: function() {
this.requestTabs.disableTab('Review');
}

Custom HTML controls, that is any UI controls defined by HTML <input > elements, do not get event listeners auto-wired in to the controller.