How to add Editior to a basic DataTable ?
How to add Editior to a basic DataTable ?
innoo_devil
Posts: 3Questions: 2Answers: 0
I'm new to Web field , so dont have much knowledge about everything. But I like your Datatable editor features, your works is really appreciable So i wanna to know that will work on simple database table ? If yes than i cantn' find any example of basic table using this. I add a basic DataTable in given below Kindly guide me how can i add this feature to my table. Thanks!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ISSUE</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<link rel="stylesheet" href="http://cdn.datatables.net/1.10.1/css/jquery.dataTables.css">
<link rel="stylesheet" href="http://cdn.datatables.net/responsive/1.0.0/css/dataTables.responsive.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script src="http://cdn.datatables.net/1.10.1/js/jquery.dataTables.min.js"></script>
<script src="http://cdn.datatables.net/responsive/1.0.0/js/dataTables.responsive.js"></script>
<!-- Latest compiled and minified CSS -->
</head>
<body>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>61</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
<tr>
<td>Garrett Winters</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>63</td>
<td>2011/07/25</td>
<td>$170,750</td>
</tr>
</tbody>
</table>table>
</body>
</html>
This discussion has been closed.
Answers
Yes it will, This example shows Editor operating on a DataTable without a server-side process. Note that because it doesn't write to a database if you refresh the page it will loose the changes. All of the other examples do write to a database because of that, but that involves making a request to the server.
Allan