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 6336729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:06:49+00:00 2026-05-24T19:06:49+00:00

Here I am working with jquery data table plugin in asp.net page I’m currently

  • 0

Here I am working with jquery data table plugin in asp.net page

I’m currently working with a table that is refreshed in page based on user actions. Users are able to enter in a search string and the table opens on a new DIV with the results. I’m having issues getting the table to work properly once it has been initialized. I’ve tried using fnDestroy as well as fnClearTable but am running into a few different issues.

When using fnClearTable, I get this error when trying to reload the table:

“DataTables warning (table id = ‘add_assets_table’): Cannot reinitialise DataTable.
To retrieve the DataTables object for this table, please pass either no arguments to the dataTable() function, or set bRetrieve to true. Alternatively, to destory the old table and create a new one, set bDestory to true (note that a lot of changes to the configuration can be made through the API which is usually much faster).
“

  • 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-05-24T19:06:50+00:00Added an answer on May 24, 2026 at 7:06 pm
    if (typeof oTable == 'undefined') {
                oTable = $('#example').dataTable( {
                    "aaData": [
                        /* Reduced data set */
                        [ "Trident", "Internet Explorer 4.0", "Win 95+", 4, "X" ],
                        [ "Trident", "Internet Explorer 5.0", "Win 95+", 5, "C" ],
                        [ "Trident", "Internet Explorer 5.5", "Win 95+", 5.5, "A" ],
                        [ "Trident", "Internet Explorer 6.0", "Win 98+", 6, "A" ],
                        [ "Trident", "Internet Explorer 7.0", "Win XP SP2+", 7, "A" ],
                        [ "Gecko", "Firefox 1.5", "Win 98+ / OSX.2+", 1.8, "A" ],
                        [ "Gecko", "Firefox 2", "Win 98+ / OSX.2+", 1.8, "A" ],
                        [ "Gecko", "Firefox 3", "Win 2k+ / OSX.3+", 1.9, "A" ],
                        [ "Webkit", "Safari 1.2", "OSX.3", 125.5, "A" ],
                        [ "Webkit", "Safari 1.3", "OSX.3", 312.8, "A" ],
                        [ "Webkit", "Safari 2.0", "OSX.4+", 419.3, "A" ],
                        [ "Webkit", "Safari 3.0", "OSX.4+", 522.1, "A" ]
                    ],
                    "aoColumns": [
                        { "sTitle": "Engine" },
                        { "sTitle": "Browser" },
                        { "sTitle": "Platform" },
                        { "sTitle": "Version", "sClass": "center" },
                        {
                            "sTitle": "Grade",
                            "sClass": "center",
                            "fnRender": function(obj) {
                                var sReturn = obj.aData[ obj.iDataColumn ];
                                if ( sReturn == "A" ) {
                                    sReturn = "<b>A</b>";
                                }
                                return sReturn;
                            }
                        }
                    ]
                } );
        }
        else {
            var dataset = [
                        /* Reduced data set */
                        [ "Trident", "Internet Explorer 4.0", "Win 95+", 4, "X" ],
                        [ "Trident", "Internet Explorer 5.0", "Win 95+", 5, "C" ],
                        [ "Trident", "Internet Explorer 5.5", "Win 95+", 5.5, "A" ],
                        [ "Trident", "Internet Explorer 6.0", "Win 98+", 6, "A" ],
                        [ "Trident", "Internet Explorer 7.0", "Win XP SP2+", 7, "A" ],
                        [ "Gecko", "Firefox 1.5", "Win 98+ / OSX.2+", 1.8, "A" ],
                        [ "Gecko", "Firefox 2", "Win 98+ / OSX.2+", 1.8, "A" ],
                        [ "Gecko", "Firefox 3", "Win 2k+ / OSX.3+", 1.9, "A" ],
                        [ "Webkit", "Safari 1.2", "OSX.3", 125.5, "A" ],
                        [ "Webkit", "Safari 1.3", "OSX.3", 312.8, "A" ],
                        [ "Webkit", "Safari 2.0", "OSX.4+", 419.3, "A" ],
                        [ "Webkit", "Safari 3.0", "OSX.4+", 522.1, "A" ]
                    ];
            oTable.fnClearTable(0);
            oTable.fnAddData(dataSet);
            oTable.fnDraw();
    
        }
    

    fnClearTable() used for clear table. fnAddData() used for add new data set. fnDraw() redraw table structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working to build a jQuery AutoSuggest plugin, inspired by Apple's spotlight. Here is
I'm currently working on a project using javascript and python with Jquery Datatables plugin
I write ASP.NET application and I want to use jQuery DataTables. In Master Page
I'm working with a dynamic DOM here, and have called the jQuery UI datepicker
Problem: to get the command working here. My domain is http://cs.edu.com/user/share_dir , but I
Here is my working page . I attached buttons to white bishop and you
Update: This question was an epic failure, but here's the working solution. It's based
I have an ASP.net MVC2 application. In wich I'm using JQuery to alter all
I'm just starting to wean myself from ASP.NET UpdatePanels. I'm using jQuery and jTemplates
Hoping someone can give me a hand here.... I have the DataTables jquery plugin

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.