Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i display the table Person which contanst title firstName lastname as column
into the jquery dataTable ?
thanks in advance
Posted

 
Share this answer
 
Please download datatable from following link.
http://datatables.net/download/[^]

After download just add JS file and CSS file to ASP.Net Project.
The most important thing to keep in mind that whenever you want to use any plugins related to JQuery, don’t forget to add the ‘JQuery.js’ file to the particular solution. It will be available with the download you just required to add to the solution.

Add the images folder available in the download , which will provide more visual effect to the datatable.
Add the JS files and CSS File in the page as below.

<script src="jquery.js"></script>
<script src="jquery.dataTables.min.js"></script>
<link href="jquery.dataTables.css" rel="stylesheet" />

After adding the above files just add the below code.
JavaScript
<script>
    $(document).ready(function(){
				$("#Person").dataTable();
    })
    </script>

Now all is set,just run the application.
Hope this will help you.
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900