Initializing table with server side processing in C#
Initializing table with server side processing in C#
I am having issues populating a table with data from a C# entity object. My code for initializing the table:
[code]
$(document).load(function () {
$('#table').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Admin/ErrorLogFeeder.svc"
});
});
[/code]
The table I supplied is empty so nothing comes up on page load; however, if I put placeholder data in the table then that will show up. I am trying to get the data from my entity object to appear, not existing data in the table. The ErrorLogFeeder is a service that holds all of my ajax methods. I already have code written to sort and filter data for a gridview object. How do I get the data from my entity object into the data tables chart? Do I need to be populating and sorting the ASP.NET table instead of trying to manipulate data tables directly?
Thanks!
[code]
$(document).load(function () {
$('#table').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Admin/ErrorLogFeeder.svc"
});
});
[/code]
The table I supplied is empty so nothing comes up on page load; however, if I put placeholder data in the table then that will show up. I am trying to get the data from my entity object to appear, not existing data in the table. The ErrorLogFeeder is a service that holds all of my ajax methods. I already have code written to sort and filter data for a gridview object. How do I get the data from my entity object into the data tables chart? Do I need to be populating and sorting the ASP.NET table instead of trying to manipulate data tables directly?
Thanks!
This discussion has been closed.