Skip to content

Instantly share code, notes, and snippets.

@krams915
Created September 15, 2011 03:58
Show Gist options
  • Save krams915/1218494 to your computer and use it in GitHub Desktop.
Save krams915/1218494 to your computer and use it in GitHub Desktop.
Event Table (DataTables version) - Init DataTables
$(function() {
...
...
// Retrieve all records for the first time
// Converts table to DataTable as well
$.getRecords('#eventTable', '${rootUrl}event/getall',
['id', 'name', 'description', 'participants', 'date'],
function() {
$('#eventTable').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment