Display Dynamic Datatables on Single Page View
Display Dynamic Datatables on Single Page View
Hello,
I want to display multiple data tables on single page using search functionality(Bind Dynamically).
I have got multiple data tables grid array from controller side but i can not manage that data tables on view side.
Below i have define some code.
So, some one help me ASAP
[code]
$.ajax({
type:'GET',
url: "/test/test.php?page=test&action=view_grid",
success: function(response) {
var oTable = $('#datatable').dataTable({
"bProcessing": true,
"sAjaxSource": response[i]
});
oTable.fnSort( [ [5,'asc'] ] );
}
}
});
[/code]
I want to display multiple data tables on single page using search functionality(Bind Dynamically).
I have got multiple data tables grid array from controller side but i can not manage that data tables on view side.
Below i have define some code.
So, some one help me ASAP
[code]
$.ajax({
type:'GET',
url: "/test/test.php?page=test&action=view_grid",
success: function(response) {
var oTable = $('#datatable').dataTable({
"bProcessing": true,
"sAjaxSource": response[i]
});
oTable.fnSort( [ [5,'asc'] ] );
}
}
});
[/code]
This discussion has been closed.