DataTable Is not working
DataTable Is not working
santoshkumar413
Posts: 1Questions: 0Answers: 0
Hi, I have requirement where the one of the grid column should be displayed as second row and i need to apply data table search functionality.
but data table is not working for this scenario. I am getting error like "Uncaught TypeError: Cannot read property 'className' of undefined " in console of the chrome. Please any one can help me to add data table to the grid controle of the asp.net.
---------This Is My Code------------------------
$(document).ready(function () {
var yourTable = $('#<%=Gv.ClientID %>').dataTable({
// If you only have three columns in the HTML table, then this line will cause an error, because it lists four columns in "aoColumnDefs".
"aoColumnDefs": [{ "bSortable": false, "aTargets": [0, 1, 2, 3]}]
});
});
-------------After Rendering------------------------
Rendering engineBrowserPlatformEngine versionCSS grade
Trident
Internet Explorer 4.0
Win 95+
A
4
Trident
Internet Explorer 5.0
Win 95+
C
5
Trident
Internet Explorer 5.5
Win 95+
A
5.5
Trident
Internet Explorer 6.0
Win 95+
A
6
Gecko
Firefox 1.0
Win 98+ / OSX.2+
A
1.7
Gecko
Firefox 1.5
Win 98+ / OSX.2+
A
1.8
but data table is not working for this scenario. I am getting error like "Uncaught TypeError: Cannot read property 'className' of undefined " in console of the chrome. Please any one can help me to add data table to the grid controle of the asp.net.
---------This Is My Code------------------------
$(document).ready(function () {
var yourTable = $('#<%=Gv.ClientID %>').dataTable({
// If you only have three columns in the HTML table, then this line will cause an error, because it lists four columns in "aoColumnDefs".
"aoColumnDefs": [{ "bSortable": false, "aTargets": [0, 1, 2, 3]}]
});
});
-------------After Rendering------------------------
Rendering engineBrowserPlatformEngine versionCSS grade
Trident
Internet Explorer 4.0
Win 95+
A
4
Trident
Internet Explorer 5.0
Win 95+
C
5
Trident
Internet Explorer 5.5
Win 95+
A
5.5
Trident
Internet Explorer 6.0
Win 95+
A
6
Gecko
Firefox 1.0
Win 98+ / OSX.2+
A
1.7
Gecko
Firefox 1.5
Win 98+ / OSX.2+
A
1.8
This discussion has been closed.