[CLOSED] [1.0] GridPanel CellClick DOM error

  1. #1

    [CLOSED] [1.0] GridPanel CellClick DOM error

    Hi all,

    I have a new issue after last 1.0 update.

    I'll try to explain it, it is quite complex to reproduce my scenario. I attached an image with the error.

    GridPanel: at cellClick I open a new window, for first time it works fine, close window, click on row to open window again and get error. Don't know if related to CellClik, please have a look.

    
    ...
    
    <View>
                        <ext:GridView ForceFit="true" AutoFill="true" runat="server" ID="gvSp" />
                    </View>
                    <LoadMask ShowMask="true" />
                    <Listeners>
                        <CellClick Fn="cellClick" />
                    </Listeners>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="SelectionModelStoredProcedures" runat="server" SingleSelect="true">
                            <DirectEvents>
                                <RowSelect OnEvent="GridPanelStoredProcedures_RowSelect">
                                    <ExtraParams>
                                        <ext:Parameter Name="StoredID" Value="this.getSelected().id" Mode="Raw" />
                                    </ExtraParams>
                                </RowSelect>
                            </DirectEvents>
                        </ext:RowSelectionModel>
                    </SelectionModel>
                    <DirectEvents>
                        <CellClick OnEvent="TestStoredProcedure_CellClick" Failure="Ext.MessageBox.alert('Load failed', 'Error!');">
                            <ExtraParams>
                                <ext:Parameter Name="idStoredProcedure" Value="params[0].getStore().getAt(params[1]).id"
                                    Mode="Raw" />
                            </ExtraParams>
                        </CellClick>
                    </DirectEvents>
    Js code error at:

    
    isValidParent:function(b,a){return b.getPositionEl().dom.parentNode==this.innerCt.dom}
    Thanx

    Matteo
  2. #2

    RE: [CLOSED] [1.0] GridPanel CellClick DOM error

    Hi,

    Please post full test sample which reproduces the problem. I tested with 'Details_Window' example which open window in CellClick event handler and can't reproduce any issue
  3. #3

    RE: [CLOSED] [1.0] GridPanel CellClick DOM error

    Hi Vlad,

    yes I'll try it and post asap, for the moment I can say that with previous builds code was ok.

    Thanx

    Matteo
  4. #4

    RE: [CLOSED] [1.0] GridPanel CellClick DOM error

    Hi Vlad,

    yes confirm CellClick is ok.

    I found what causes the issue, here it is the code:

    
    <Listeners>
        <Hide Handler="if(this.iframe) {this.iframe.remove(); delete this.iframe;}" />
    </Listeners>
    It is related to the window I show at CellClick of the grid. Here it is full code:

    
    <ext:Window ID="WindowTestStoredProcedure" runat="server" Modal="true" Resizable="false"
            Maximizable="true" Show&#111;nload="false" Width="700" Height="400" AutoScroll="true"
            Hidden="true" Icon="Lightning" Title="Test Stored Procedure" BodyStyle="background-color:#F4F4F4;">
            <Content>
            </Content>
            <Listeners>
                <Hide Handler="if(this.iframe) {this.iframe.remove(); delete this.iframe;}" />
            </Listeners>
        </ext:Window>
    I partially solved by removing the listener, but I still would like this functionality.
    Do people need to change the Hide listener code now with 1.0 version, can you give a hint?

    One more thing in general, I would like to understand.
    You can see in the code above the ShowOnLoad property, it is not necessary anymore.
    Why Visual Studio does not prompt for errors?

    Thank you

    Matteo


  5. #5

    RE: [CLOSED] [1.0] GridPanel CellClick DOM error

    Hi,

    Use the following code
    <Hide Handler="this.clearContent();" />

    Regarding unexisting property. I think the VS thinks that it is custom html attribute and will try to render it in the HTML markup
  6. #6

    RE: [CLOSED] [1.0] GridPanel CellClick DOM error

    Perfect thanx.

    Matteo

Similar Threads

  1. [CLOSED] gridPanel.Reload error
    By supera in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 30, 2012, 2:25 PM
  2. [CLOSED] Cancel cellclick on certain column
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 13, 2011, 8:04 AM
  3. [CLOSED] Error with PartialViewResult and GridPanel
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 02, 2010, 7:23 AM
  4. error gridpanel
    By fren21 in forum 1.x Help
    Replies: 4
    Last Post: Jul 06, 2009, 9:38 PM
  5. [CLOSED] GridPanel and FitLayout Error
    By Penunuri in forum 1.x Help
    Replies: 4
    Last Post: Nov 27, 2008, 11:59 AM

Posting Permissions