This is a migrated thread and some comments may be shown as answers.

Out of stack space Error

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 21 Jan 2021, 04:38 PM

 

Hello,

I have an Aspx page that contains 2 grids.  This page works fine in my VM and in INT. But when I run it on Test, I get Out of Stack Space Error when I clicked on the event to load the edit form.  Clicking cancel or save button would result the Out of Stack Space Error on method in the script source loading. 

Telerik.Web.UI.RadInputManager.WebForm_OnSubmit=function(){var d=Telerik.Web.UI.RadInputManager._originalWebForm_OnSubmit();

If I only have one grid on an Aspx page, it works fine in INT & Test.

 

 

The version that we are using is version Telerik.Web.UI is 2016.2.504.45

I do see another set of script source files loaded when I clicked on the Cancel or Save button; then I get the Out of Stack Space error.

Below is the ascx code (please assumed that we have more columns in the grid) : 

<telerik:RadCodeBlock ID="RadScriptBlock" runat="server">
    <script type="text/javascript">
        function caseRefreshPage() {
            try {
                var ctrl = $find("<%= RadAjaxMgr.ClientID%>");
                ctrl.ajaxRequest("info");
                return false;
            }
            catch (ex) {
            }
        }
        // SharePoint postback to work after clicking on telerik export to pdf
        if ((typeof (_spBodyOnLoadFunctionNames) != 'undefined') && (_spBodyOnLoadFunctionNames != null)) {
            _spBodyOnLoadFunctionNames.push("supressSubmitWrapper");
        }
        function supressSubmitWrapper() {
            _spSuppressFormOnSubmitWrapper = true;
        }
        var AjaxIsActive = false;
        function onRequestStart(sender, args) {
            if (!AjaxIsActive) {
                AjaxIsActive = true;
            }
            else {
                alert('Wait for ajax to finish'); return false;
            }
        }
        function onResponseEnd() {
            AjaxIsActive = false;
        }
        function rowDblClick(sender, eventArgs) {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManager ID="RadAjaxMgr" runat="server" OnAjaxRequest="RadAjaxMgr_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="GridAA">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="GridAA" LoadingPanelID="RadLoadingPnl" />
                <telerik:AjaxUpdatedControl ControlID="PanelNoItems" LoadingPanelID="RadLoadingPnl" />
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="Grid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="RadLoadingPnl" />
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    <ClientEvents OnRequestStart="onRequestStart" OnResponseEnd="onResponseEnd"></ClientEvents>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadLoadingPnl" runat="server" CssClass="ecase-loading-image" />
<telerik:RadFormDecorator RenderMode="Lightweight" ID="RadFormDecorator1" runat="server" DecorationZoneID="radDiv" DecoratedControls="All" EnableRoundedCorners="false" />
          <div id="DivAA" class="panel panel-primary">
            <div class="panel-heading">Grid AA</div>

<div>
    <div id="radDiv" class="table-responsive">
        <telerik:RadGrid ID="GridAA" runat="server" AutoGenerateColumns="false" EnableViewState="true" CssClass="table"
            AllowSorting="true" AllowFilteringByColumn="true" GridLines="Horizontal" PageSize="25" FilterType="Classic"
            OnNeedDataSource="GridAA_NeedDataSource" Skin="Default" OnUpdateCommand="GridAA_UpdateCommand" ShowFooter="true" OnItemDataBound="GridAA_ItemDataBound"
            OnItemInserted="GridAA_ItemInserted" OnDeleteCommand="GridAA_DeleteCommand" OnItemCreated="GridAA_ItemCreated" OnInsertCommand="GridAA_InsertCommand">
            <ItemStyle Wrap="true" />
            <MasterTableView TableLayout="Auto" AllowMultiColumnSorting="true" AllowFilteringByColumn="false" AllowPaging="false"
                FilterItemStyle-Wrap="false" EnableNoRecordsTemplate="true" CommandItemDisplay="Top" EditMode="PopUp" DataKeyNames="PrimaryKey1" >
      <CommandItemSettings ShowRefreshButton="false" />
                <Columns>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderStyle-HorizontalAlign="Center"
                        HeaderText="Edit" HeaderStyle-Width="75px" UpdateText="Update" ButtonType="FontIconButton" ItemStyle-HorizontalAlign="Center">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridNumericColumn UniqueName="ColColumn1" DataField="Column1" DataType="System.Decimal" NumericType="Currency"
                        HeaderText="Column 1" EmptyDataText="" FilterControlWidth="200px" HeaderStyle-Width="200px"
                        HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Right"
               Aggregate="Sum" FooterStyle-HorizontalAlign="Right" FooterAggregateFormatString="<b>Balance:   {0:C}</b>" />
              <telerik:GridButtonColumn UniqueName="ColDelete" ConfirmText="Delete this Grid AA?" ConfirmDialogType="RadWindow" ItemStyle-Width="50px"
                        ItemStyle-HorizontalAlign="Center" ConfirmTitle="Delete" ButtonType="FontIconButton" CommandName="Delete" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:Panel ID="PanelNoItems" runat="server" Visible="false" >
            <span>No Grid Item.  Please contact the administrator to report this issue / problem.</span>
        </asp:Panel>
    </div>
    <telerik:RadInputManager RenderMode="Lightweight" runat="server" ID="RadInputManager1" Enabled="true">
        <telerik:TextBoxSetting BehaviorID="TextBoxSetting1">
        </telerik:TextBoxSetting>
        <telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxSetting1" Type="Currency"
            AllowRounding="true" DecimalDigits="2">
        </telerik:NumericTextBoxSetting>
        <telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxSetting2" Type="Number"
            AllowRounding="true" DecimalDigits="0" MinValue="0">
        </telerik:NumericTextBoxSetting>
    </telerik:RadInputManager>
    <telerik:RadWindowManager RenderMode="Lightweight" ID="RadWindowManager1" runat="server" />
</div>
          </div>
          <div id="Div2" class="panel panel-primary">
            <div class="panel-heading">Grid 2</div>
<div>
    <div id="radDiv2" class="table-responsive">
        <telerik:RadGrid ID="Grid" runat="server" AutoGenerateColumns="false" EnableViewState="true" CssClass="table"
            AllowSorting="true" AllowFilteringByColumn="true" GridLines="Horizontal" PageSize="25" FilterType="Classic"
            OnNeedDataSource="Grid_NeedDataSource" Skin="Default" OnUpdateCommand="Grid_UpdateCommand" ShowFooter="true"
            OnItemCreated="Grid_ItemCreated" OnDeleteCommand="Grid_DeleteCommand" OnInsertCommand="Grid_InsertCommand">
            <ItemStyle Wrap="true" />
            <MasterTableView TableLayout="Auto" AllowMultiColumnSorting="true" AllowFilteringByColumn="false" AllowPaging="false"
                FilterItemStyle-Wrap="false" EnableNoRecordsTemplate="true" CommandItemDisplay="Top" EditMode="EditForms" DataKeyNames="AAID" >
  <CommandItemSettings ShowRefreshButton="false" />
                <Columns>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderStyle-HorizontalAlign="Center"
                        HeaderText="Edit" HeaderStyle-Width="75px" UpdateText="Update" ButtonType="FontIconButton" ItemStyle-HorizontalAlign="Center">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridNumericColumn UniqueName="ColColumn2" DataField="Column2" DataType="System.Decimal" NumericType="Currency"
                        HeaderText="Column 2" EmptyDataText="" FilterControlWidth="200px" HeaderStyle-Width="200px"
                        HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Right"
               Aggregate="Sum" FooterStyle-HorizontalAlign="Right" FooterAggregateFormatString="<b>Balance:   {0:C}</b>" />
              <telerik:GridButtonColumn ConfirmText="Delete this Item?" ConfirmDialogType="RadWindow" ItemStyle-Width="50px"
                        ItemStyle-HorizontalAlign="Center" ConfirmTitle="Delete" ButtonType="FontIconButton" CommandName="Delete" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
</div>
          </div>

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 26 Jan 2021, 09:20 AM

Hi Eric,

I have run a quick test using the markup below and I was unable to replicate the issue. The issue you have described sounds like a time-consuming logic on the server-side, perhaps an infinite loop. However, I will need to see the complete code (including server-side) in order to tell you more.

Also, there are a few JavaScript functions that are not referenced by any of the elements you shared below.

Please share server-side logic as well and I will try to replicate the problem locally.

Regards,
Attila Antal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or