JQuery DataTables

If you get the error “.DataTable is not a function”, you need to make sure you load jquery.js and jquery.dataTables.js first before you initialize the table with $(‘#sometable’).dataTable();

The second thing is to make sure you are not loading jQuery twice.  For example, your _Layout.cshtml may load a jquery and then you decide to load the latest jquery using google cdn.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s