Problem with datatable server side scripting with MVC
Problem with datatable server side scripting with MVC
Hi Guys,
I am new to datatable. I want to use the server-side scripting because I have very huge amount of data. I wrote the following code :
[code]
$(document).ready(function () {
$('#example').dataTable({
"bServerSide": true,
"sAjaxSource": "/Customer/TestActive"
});
});
Name
MobileNo
Location
Name
MobileNo
Location
[/code]
But when I am calling the above method from code behind file, then it generates the correct number of rows as well as correct number of columns, but not able to see any data in those columns.
Means there is no data displayed, but the design is there with correct number of columns and rows.
Please help me on this ASAP.
Thanks in advance.
I am new to datatable. I want to use the server-side scripting because I have very huge amount of data. I wrote the following code :
[code]
$(document).ready(function () {
$('#example').dataTable({
"bServerSide": true,
"sAjaxSource": "/Customer/TestActive"
});
});
Name
MobileNo
Location
Name
MobileNo
Location
[/code]
But when I am calling the above method from code behind file, then it generates the correct number of rows as well as correct number of columns, but not able to see any data in those columns.
Means there is no data displayed, but the design is there with correct number of columns and rows.
Please help me on this ASAP.
Thanks in advance.
This discussion has been closed.