Looking for a guide related to vs2010 mvc3 on how to use the plugin...

Looking for a guide related to vs2010 mvc3 on how to use the plugin...

WarrenLaFranceWarrenLaFrance Posts: 2Questions: 0Answers: 0
edited May 2012 in DataTables 1.9
I have used NuGet package manager in vs 2010 to install the jquery.datatables plugin. I then created a simple page with a hardcoded table.
I then added what I think are the correct scripts and css to the _layout.cshtml and such.. But my table is not styled and does not have the datatable plugin features added to it.
In the layout I have the following:
[code]





[/code]


The simple page....

[code]

$(document).ready(function() {
$('#table_id').dataTable();
} );​











Column 1
Column 2
etc




Row 1 Data 1
Row 1 Data 2
etc


Row 2 Data 1
Row 2 Data 2
etc







[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Do you get any errors on the Javascript console of your browser (Firebug / Inspector)?

    Allan
  • WarrenLaFranceWarrenLaFrance Posts: 2Questions: 0Answers: 0
    edited May 2012
    Thanks for the info, it certaintly helped..

    After using firebug I can tell the scripts and such are there and the sorting and etc seems to be working for the zero configuration. I think I just have the stylesheet reference wrong now... lol


    Ok, after checking my style sheets and etc I got it working.. Sweet! Thanks for your help...
This discussion has been closed.