Hello!
I'm trying to pass an argument (a gridview record gathered from the cellblclick event) to a window's show() event.
I think I will need to use delegate to do it:
http://stackoverflow.com/questions/6...-extjs-handler
But I don't know how well it jives in MVC. I got my window defined in my view's physical file:
Code:
Ext.define('EditPortalUserWindow', {
alias: 'widget.EditPortalUserWindow',
extend: 'Ext.Window',
height: 400,
width: 400,
modal: true,
title; 'Bleh'
});
Then in my controler, in the celldblclick listener:
Code:
//record is an argument from the celldblclick event...
PortalUI.MainContent.Utilities.showEditUserWindow(record);
//showEditUserWindow does this:
Ext.widget('EditPortalUserWindow').show();
I am a little confused about the scoping between view/controller. Has anyone done this before ?
Thanks.
Using 4.2.1