Jun 01, 2021, 2:09 PM
Ext js error
Hi,
In a web application with Ext.net I get an error related to Ext.js.
The error appears after clicking a ext:imagebutton
Uncaught TypeError: Cannot read property 'length' of undefined
at ctor.hasRange (ext.axd?v=5.3.0:formatted:54869)
at ctor.rangeCached (ext.axd?v=5.3.0:formatted:55347)
at ctor.getRange (ext.axd?v=5.3.0:formatted:55089)
at ctor.getAllRange (ext.axd?v=5.3.0:1040)
at ctor.getRowsValues (ext.axd?v=5.3.0:1094)
at constructor.fn (ext.axd?aec3b8873b7143cb99d22dfa36e3253d:2)
at h (ext.axd?v=5.3.0:formatted:10059)
at Object.elevate (ext.axd?v=5.3.0:formatted:2111)
at c (ext.axd?v=5.3.0:formatted:4081)
ext.axd?v=5.3.0:formatted:54869
I tried to find the cause by removing parts of the code and found that the error is not coming when e ExtraParam
May be it is related to the gridpanel.
Any idea where I have to search?
Hans Wapenaar
In a web application with Ext.net I get an error related to Ext.js.
The error appears after clicking a ext:imagebutton
Uncaught TypeError: Cannot read property 'length' of undefined
at ctor.hasRange (ext.axd?v=5.3.0:formatted:54869)
at ctor.rangeCached (ext.axd?v=5.3.0:formatted:55347)
at ctor.getRange (ext.axd?v=5.3.0:formatted:55089)
at ctor.getAllRange (ext.axd?v=5.3.0:1040)
at ctor.getRowsValues (ext.axd?v=5.3.0:1094)
at constructor.fn (ext.axd?aec3b8873b7143cb99d22dfa36e3253d:2)
at h (ext.axd?v=5.3.0:formatted:10059)
at Object.elevate (ext.axd?v=5.3.0:formatted:2111)
at c (ext.axd?v=5.3.0:formatted:4081)
ext.axd?v=5.3.0:formatted:54869
I tried to find the cause by removing parts of the code and found that the error is not coming when e ExtraParam
<ext:ImageButton runat="server" ID="btnSave"
ImageUrl="~/images/save24.png"
Width="24" Height="24"
Cls="btn-custommedium" Scale="Medium" MarginSpec="0 3 0 3" OnClientClick="onBeginProcessing();" >
<DirectEvents>
<Click OnEvent="btnSave_onEventclick" >
<ExtraParams>
<ext:Parameter Name="GridData" Value="Ext.encode(#{gpAllocation}.getRowsValues({selectedOnly : false}))" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
<ToolTips><ext:ToolTip ID="btnSaveToolTip" runat="server" Html="Opslaan"></ext:ToolTip></ToolTips>
</ext:ImageButton>
On several other locations I also use the extraparams without any problem.May be it is related to the gridpanel.
Any idea where I have to search?
Hans Wapenaar
Last edited by HansWapenaar; Jun 01, 2021 at 2:10 PM.
Reason: title change