Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8126671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:14:01+00:00 2026-06-06T07:14:01+00:00

I have a jQueryUI Tabs control on a web page. Each tab contains one

  • 0

I have a jQueryUI Tabs control on a web page. Each tab contains one or more Slickgrid grids.

Sometimes, but with no particular pattern that I have been able to discover, when removing tabs (therefore removing instances of Slickgrid), I get:

// slick.grid-2.0.merged.min.js: Microsoft JScript runtime error: Invalid argument
Z[0].styleSheet.cssText=a.join(" ")

which then propogates to

// jquery-1.7.1.min.js: Microsoft JScript runtime error: Exception occurred.
a.execScript||function(b){a.eval.call(a,b)})(b)

What’s causing this issue and how can I work around / resolve it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:14:05+00:00Added an answer on June 6, 2026 at 7:14 am

    Following the comment from @Tin, I ensured that every instance of SlickGrid was destroyed prior to the HTML element it was associated with being replaced by an Ajax result.

    Leveraging

    Is there a way to get an instance of SlickGrid from an element

    I ended up with code like this:

    Initialize SlickGrid instance:

    grid = new Slick.Grid("#myGridDiv", myDataView, myColumns, myOptions);
    $('#myGridDiv').data('slickgrid', grid);
    

    General cleanup function:

    function cleanupSlickGrid() {
        //@* Cleanup slickgrid instances.  See: https://stackoverflow.com/questions/10129069/invalid-argument-error-with-slickgrid *@
        var grids = $('.slick'); //@* I add the class 'slick' to each grid *@
        jQuery.each(grids, function(i, val) {
            var grid = $(this).data('slickgrid');
            grid.destroy();
            });
    }
    

    use general cleanup function like this:

    $.ajax(
    {
        url: removeUrl,
        type: "POST",
        success: function (data)
        {
            cleanupSlickGrid();
            $('#myDivId').html(data); 
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built two control containers on a page, one is using jquery-ui tabs
I'm experimenting with the jQuery UI tab control, and have three tabs that each
I have a page with a jqueryUI tab on it. I have 3 tabs.
I'm using jqueryui to display my page content in tabs. Right now I have
According to this page: http://jqueryui.com/demos/tabs/#ajax I can have the content of tabs in separate
I have one question regarding using JQuery UI tab control in the asp.net mvc
I have a similar problem to this one . I am using jQueryUI tabs
I have an aspx page that contains a dialog box defined with JQueryUI $('#dialog').dialog({
I have some tabs using jQuery UI which work just fine, but I want
I have a sortable list like this one: http://jqueryui.com/demos/sortable Is it possible to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.