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...
WarrenLaFrance
Posts: 2Questions: 0Answers: 0
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]
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]
This discussion has been closed.
Replies
Allan
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...