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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:30:39+00:00 2026-06-13T21:30:39+00:00

I am using Meteor and the jquery data table library. I have a table

  • 0

I am using Meteor and the jquery data table library.
I have a table that I am loading meteor/handlebars using something like this:

<table>
{{each x}}
  // code to insert rows of data
{{/each}}
</table>

I need to call this on the table once it has been fully populated with data to turn it into a sortable table:

$('#tableID').dataTable();

It works when I call it from the console once the DOM is fully loaded and the data is in there, but using Template.rendered() doesn’t work, nor does listening for changes with .observe since the data is loaded before that particular view is rendered.

Where can I run this code to ensure that the data is fully loaded, and if there are updates to the data in the table that it will run again?

  • 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-13T21:30:40+00:00Added an answer on June 13, 2026 at 9:30 pm

    I found a way of doing it which seems to work after I split the individual rows into templates – will update as I continue to debug it (and this is certainly not ideal).

    Template.individualRow.rendered = function() {
      if (!$('#tableID').hasClass('initialized')) {
          $('#tableID').not('.initialized').addClass('initialized').dataTable();
      };
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this jQuery with this: //Table select $(#reports-table tr).click( function(e) { if($(e.target).is(.row-button-small)) return;
I'm using meteor with the bootstrap package. (here is a chunk of code where
Using Meteor, I'm wondering how best to handle different client-side collections that share the
I have a standard template in an Html file like: <template name=cards> {{#each all_cards}}
I'm trying to create a meteor app using jquery UI features. However I'm not
I'm using wordpress and I used a plugin called meteor slideshows that I believe
I have an autocomplete textbox function which I am using in meteor. It works
I have an app that I would like to create. But I am not
I have to implement an audio (VU) meter using Javascript. This concept should be
I have some sample data like so: var data = { section: { 1:

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.