DOM Datasource

DOM Datasource

jchappell99jchappell99 Posts: 15Questions: 0Answers: 0
edited February 2013 in General
I'm new to Datatables and was trying a basic setup. I've included the 2 js files and the css file.





@import "~/Scripts/demo_table.css";



$(document).ready(function () {
$('#tbl').dataTable({
"sScrollY": "150px",
//'sPaginationType': 'full_numbers',
//'iDisplayLength': 5,
"bPaginate": true,
"bProcessing": true,
"bServerSide": false
});
});








Id
Name
Gender
Age
AdmitDateTime
Account
Institution






<%# Eval("CorpId") %>
<%# Eval("FullName") %>
<%# Eval("Gender") %>
<%# Eval("Age") %>
<%# Eval("AdmitDateTime") %>
<%# Eval("Account") %>
<%# Eval("Institution") %>









I'm using a repeater control and populating the data. The data is appearing in the table without issue but it's just data in a table.. No formatting, no "magic" if you will from the Datatable includes and css includes.

Not sure what I'm missing... but the Datatables magic isn't working!

Any help is greatly appreciated
John

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited February 2013
    Edit - I was talking rubbish - that looks like it should work. Can you link to the page please or run it through the debugger.

    Allan
  • jchappell99jchappell99 Posts: 15Questions: 0Answers: 0
    All this code is within an .ascx file that's loaded into a web part in Sharepoint. Would that matter?

    John
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Not it if outputs a valid HTML table.
This discussion has been closed.