DataTables intialization hides all the rows of the table (asp.net grid view)
DataTables intialization hides all the rows of the table (asp.net grid view)
jigs
Posts: 1Questions: 0Answers: 0
I m using asp.net grid view to render table on my HTML and DataTables to enhance it. After inserting a thead element in the table. and inserting a row into it, i am initializing the DataTable. On doing so All the rows get disappeared
This discussion has been closed.
Replies
Allan
However, in one of my pages, when Initialize the datatable, all rows get disappeared.
Here is the datatable initialization.
[code]
$(document).ready(function () {
$('#<%=productPriceListGW.ClientID%>').GridviewFix().dataTable({
"sDom": 'WR<"H"f>t',
"oColumnFilterWidgets": {
"aiExclude": [0, 1, 2]
},
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"bJQueryUI": true
});
});
[/code]
[code]
...
[/code]
I did tried to use the basic initialisation
[code]
$(document).ready(function () {
$('#<%=productPriceListGW.ClientID%>').GridviewFix().dataTable();
});
[/code]
And it gives me the error: "assorting" is null