View Full Version : window eventhandler not called from controller

6 Oct 2011, 1:23 AM
I have a view which is a window.

Ext.define('WorkScheduleView', { extend: 'Ext.window.Window',
itemId: 'myWorkScheduleView',
closable: false,
autoShow: true,
floating: true,
modal: true,
closeAction: 'destroy',

The controller handles the render event.

init: function () {
'#myWorkScheduleView': {
render: this.renderView

Problem: the renderView function however isn't called.
The renderView function does get called when the view is a Ext.panel.Panel.

6 Oct 2011, 6:13 AM
I'm not sure but on your window wouldn't you use id instead of itemId?
You can try use something like 'window[itemId=myWorkScheduleView]'.