1. #1
    Ext JS Premium Member
    Join Date
    Jun 2011
    Posts
    1
    Vote Rating
    0
    jkbeks is on a distinguished road

      0  

    Talking Unanswered: window eventhandler not called from controller

    Unanswered: window eventhandler not called from controller


    I have a view which is a window.

    Code:
    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.

    Code:
    	init: function () {
    		this.control({
    			'#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.

  2. #2
    Sencha User lucasguaru's Avatar
    Join Date
    May 2011
    Location
    Guaruj√°, Brazil
    Posts
    77
    Vote Rating
    2
    Answers
    9
    lucasguaru is on a distinguished road

      0  

    Default


    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]'.

Thread Participants: 1