DOM Datasource
DOM Datasource
jchappell99
Posts: 15Questions: 0Answers: 0
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
@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
This discussion has been closed.
Replies
Allan
John