Created
          September 15, 2011 03:58 
        
      - 
      
- 
        Save krams915/1218494 to your computer and use it in GitHub Desktop. 
    Event Table (DataTables version) - Init DataTables
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $(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