Feb 14, 2017, 6:54 PM
[CLOSED] Page get Uncaught TypeError: Cannot read property 'addCls' of undefined when view page in IPad
In the page there is ext:window for load other page when user click the command menu in grid. the ext:window display correct in desktop browser but cannot display in IPad when click the command menu. there is Uncaught TypeError raised:
Uncaught TypeError: Cannot read property 'addCls' of undefined
loadFrame @ ext.axd?v=4.2.0:475load @ ext.axd?v=4.2.0:460load @ ext.axd?v=4.2.0:402(anonymous function) @ VM338:1executeScriptDelay @ ext.axd?v=4.2.0:256executeScript @ ext.axd?v=4.2.0:256requestSuccessHandler @ ext.axd?v=4.2.0:249callback @ ext.axd?v=4.2.0:19onComplete @ ext.axd?v=4.2.0:19onStateChange @ ext.axd?v=4.2.0:19(anonymous function) @ ext.axd?v=4.2.0:19
Command click java script
Uncaught TypeError: Cannot read property 'addCls' of undefined
loadFrame @ ext.axd?v=4.2.0:475load @ ext.axd?v=4.2.0:460load @ ext.axd?v=4.2.0:402(anonymous function) @ VM338:1executeScriptDelay @ ext.axd?v=4.2.0:256executeScript @ ext.axd?v=4.2.0:256requestSuccessHandler @ ext.axd?v=4.2.0:249callback @ ext.axd?v=4.2.0:19onComplete @ ext.axd?v=4.2.0:19onStateChange @ ext.axd?v=4.2.0:19(anonymous function) @ ext.axd?v=4.2.0:19
Command click java script
App.direct.LoadMenuWindow(id.data.RoleID,id.data.RoleName);
ext:window in aspx page<ext:Window ID="winAssignedMenu" runat="server" Title="Window" Frame="true" Width="700"
ConstrainHeader="true" Height="500" Maximizable="true" Closable="true" Resizable="true"
Modal="true" Hidden="true">
<Loader ID="Loader1" Url="SystemRoleAssignedMenu.aspx" Mode="Frame" DisableCaching="true" TriggerEvent="show" runat="server"
ReloadOnEvent="true">
<Params>
<ext:Parameter Name="RoleID" Mode="Raw" Value="0">
</ext:Parameter>
</Params>
</Loader>
<Listeners>
<Hide Handler="this.clearContent();" />
</Listeners>
</ext:Window>
Server side LoadMenuWindow function[DirectMethod]
public void LoadMenuWindow(string RoleID, string RoleName)
{
this.winAssignedMenu.Loader.SuspendScripting();
this.winAssignedMenu.Loader.Url = "SystemRoleAssignedMenu.aspx";
this.winAssignedMenu.Loader.DisableCaching = true;
this.winAssignedMenu.Loader.Mode = Ext.Net.LoadMode.Frame;
this.winAssignedMenu.Loader.Params.Clear();
this.winAssignedMenu.Loader.Params.Add(new Ext.Net.Parameter("RoleID", RoleID));
this.winAssignedMenu.SetTitle("Assign Menu – Role '" + RoleName + "'");
this.winAssignedMenu.LoadContent();
this.winAssignedMenu.Show();
}
Last edited by fabricio.murta; Feb 25, 2017 at 4:09 AM.
Reason: no user feedback for 7+ days