Maximum call stack size exceeded with Latest version 2021.3.914.45

1 Answer 187 Views
TabStrip
RBarnes
Top achievements
Rank 1
RBarnes asked on 15 Oct 2021, 09:48 PM

Build 2021.3.914.45, I've got a page that I dynamically add tabs and pageviews too, it's now throwing a maximum call stack size exceeded, NO changes at all to this page, and was working perfectly prior to the upgrade of controls.  The only change was upgrading to the specified version of controls.

Uncaught RangeError: Maximum call stack size exceeded

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 18 Oct 2021, 06:38 AM

Hello,

The faced error is relate to a know regression, which is already fixed internally. The fix will be available in our up-coming  R3 2021 SP1 release:

https://feedback.telerik.com/aspnet-ajax/1535481    

Meanwhile, you can workaround it by adding the following script just below the closing </form> tag:

<script>
    Sys.Application.add_init(function fixTabStrip() {
        if (Telerik && Telerik.Web && Telerik.Web.UI && Telerik.Web.UI.RadTabStrip) {
            Telerik.Web.UI.RadTabStrip.prototype._childInserted = function (index, tab, owner) {
                this._allTabs = null;

                if (this._cachedSelectedTab) {
                    owner._setSelectedIndex(this._cachedSelectedTab.get_index());
                    this._cachedSelectedTab = null;
                }

                if (tab._cachedSelected) {
                    owner._setSelectedIndex(index);
                    tab._cachedSelected = false;
                }

                Telerik.Web.UI.RadTabStrip.callBaseMethod(this, "_childInserted", [index, tab, owner]);

                if (tab.get_isBreak()) {
                    var breakElement = document.createElement("li");
                    breakElement.className = "rtsBreak";
                    owner.get_childListElement().insertBefore(breakElement, tab._element.nextSibling);
                }

                //if (tab.get_parent() && tab.get_parent() instanceof Telerik.Web.UI.RadTab && tab.get_parent().get_selected()) {
                //    $telerik.$(tab.get_parent().get_levelElement()).removeClass("rtsHidden");
                //}
            }
        }
    });
</script>

Regards,
Vessy
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
TabStrip
Asked by
RBarnes
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or