[CLOSED] Page get Uncaught TypeError: Cannot read property 'addCls' of undefined when view page in IPad

  1. #1

    [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
    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
  2. #2
    Hi. I tried reproducing the issue with the code snippets that you provided, but was unable.

    If a reproducible code sample cannot be provided, we will mark the thread as [CLOSED].
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 3
    Last Post: Feb 08, 2017, 4:31 PM
  2. Replies: 5
    Last Post: Nov 04, 2016, 3:18 AM
  3. Replies: 1
    Last Post: Nov 01, 2016, 2:30 PM
  4. Replies: 3
    Last Post: Sep 13, 2015, 8:41 AM
  5. Replies: 5
    Last Post: Oct 30, 2013, 1:29 PM

Posting Permissions