[CLOSED] [1.0] Javascript error when closing a window containing a property grid

  1. #1

    [CLOSED] [1.0] Javascript error when closing a window containing a property grid

    Close the window by hitting Close or the "x" in the upper right corner. Javascript error thrown when destroying the grid.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" />
        <ext:Window runat="server" ID="win" Width="400" Height="400" CloseAction="Close">
            <Items>
                <ext:PropertyGrid ID="PropertyGrid1" runat="server">
                    <ColumnModel>
                        <Columns>
                            <ext:Column Header="Name">
                            </ext:Column>
                        </Columns>
                    </ColumnModel>
                </ext:PropertyGrid>
            </Items>
            <TopBar>
                <ext:Toolbar runat="server">
                    <Items>
                        <ext:Button runat="server" Text="Close" Icon="Cancel">
                            <Listeners>
                                <Click Handler="win.close();" />
                            </Listeners>
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
            </TopBar>
        </ext:Window>
        </form>
    </body>
    </html>
  2. #2

    RE: [CLOSED] [1.0] Javascript error when closing a window containing a property grid

    Thanks for reporting the issue. I was able to reproduce the JavaScript error.

    Here's a full sample with assembly references and stripped down to bare minimum.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" ScriptMode="Debug" />
    
            <ext:Window runat="server" Width="400" Height="400" CloseAction="Close">
                <Items>
                    <ext:PropertyGrid runat="server">
                        <ColumnModel>
                            <Columns>
                                <ext:Column Header="Name" />
                            </Columns>
                        </ColumnModel>
                    </ext:PropertyGrid>
                </Items>
            </ext:Window>
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] [1.0] Javascript error when closing a window containing a property grid

    Hi,

    The fix is very fix but we don't feel like override such big GridView's destroy method. We created bug topic on ExtJS forum, hope they will fix it soon (may be today because the fix is very simple)


    http://www.sencha.com/forum/showthre...-destroy-error
  4. #4

    RE: [CLOSED] [1.0] Javascript error when closing a window containing a property grid

    Hi,

    We applied own temporary fix until ExtJS will fix it. Please update from SVN

Similar Threads

  1. viewstate error after closing iframe window
    By pstorch in forum 1.x Help
    Replies: 0
    Last Post: Mar 01, 2012, 10:32 AM
  2. Replies: 7
    Last Post: Feb 09, 2012, 11:17 AM
  3. Replies: 1
    Last Post: Nov 11, 2011, 2:48 PM
  4. Replies: 2
    Last Post: Sep 29, 2010, 8:51 PM
  5. Error with Store when closing window
    By fabiomarcos in forum 1.x Help
    Replies: 7
    Last Post: Jan 30, 2009, 3:39 PM

Posting Permissions