Feb 15, 2018, 4:31 PM
KeyMap code that worked in V4.2.1 not working in V4.5.1
Hello,
I have the following KeyMap in an mvc view which is referencing a window, where "HomeWindow" is the ID of the window...
When i go to that line in the ext code, it is as follows...
I have the following KeyMap in an mvc view which is referencing a window, where "HomeWindow" is the ID of the window...
Html.X().KeyMap()
.Target ( "HomeWindow")
.Binding
( b => b.Add
( Html.X().KeyBinding ( )
.Handler ( "this.close()" )
.KeysString ( "enter" )
)
);
it worked in version 4.2.1, but in version 4.5.1 it is throwing the following error...
Unable to get property 'isComponent' of undefined or null reference
Source = http://localhost:3000/Clearview/Sunr...xt.axd?v=4.5.1 at LineNo 20 at Position 1069792
Source = http://localhost:3000/Clearview/Sunr...xt.axd?v=4.5.1 at LineNo 20 at Position 1069792
if(!a.target.isComponent){a.target=Ext.get(a.target)}
Is it expecting a different type of target than the one i have provided? I also tried setting the target to...Ext.getCmp("HomeWindow")
but got the same error.