ASP .NET Grid View, Datatable
ASP .NET Grid View, Datatable
acb2
Posts: 1Questions: 0Answers: 0
Hi All!
I´m having a situation and i've not found any example relevant...
I´m using one asp .net gridview control with Datatable 1.9:
var tablaWaypointsNominal = $('#MainContent_gridviewNominal').prepend($("").append($(this).find("tr:first"))).dataTable({
"bJQueryUI": true,
"bPaginate": false,
"bFilter": true,
"bSort": true,
"bInfo": false,
"sScrollY": "100px",
"bScrollCollapse": false,
"oLanguage": {
sEmptyTable: "",
sZeroRecords: ""
},
"sDom": '<"H"Rlfr>t<"F"ip>',
});
and i need no to use another ASP.NET gridview control inside the same page that could be:
var tablaWaypointsContingencia = $('#MainContent_gridviewNominal').prepend($("").append($(this).find("tr:first"))).dataTable({
"bJQueryUI": true,
"bPaginate": false,
"bFilter": true,
"bSort": true,
"bInfo": false,
"sScrollY": "100px",
"bScrollCollapse": false,
"oLanguage": {
sEmptyTable: "",
sZeroRecords: ""
},
"sDom": '<"H"Rlfr>t<"F"ip>',
});
When i declare only the first gridview i´ve no problems and all works fine.
if i declare the second too, first gridview don´t show the columns (only show add and remove buttons i´ve created) and second gridview show first gridview's thead and his own thead below...
I have the error: "Uncaught TypeError: Cannot read property 'className' of undefined"
If anyone knows the solution, i´ll appreciate it, thanks! ;)
I´m having a situation and i've not found any example relevant...
I´m using one asp .net gridview control with Datatable 1.9:
var tablaWaypointsNominal = $('#MainContent_gridviewNominal').prepend($("").append($(this).find("tr:first"))).dataTable({
"bJQueryUI": true,
"bPaginate": false,
"bFilter": true,
"bSort": true,
"bInfo": false,
"sScrollY": "100px",
"bScrollCollapse": false,
"oLanguage": {
sEmptyTable: "",
sZeroRecords: ""
},
"sDom": '<"H"Rlfr>t<"F"ip>',
});
and i need no to use another ASP.NET gridview control inside the same page that could be:
var tablaWaypointsContingencia = $('#MainContent_gridviewNominal').prepend($("").append($(this).find("tr:first"))).dataTable({
"bJQueryUI": true,
"bPaginate": false,
"bFilter": true,
"bSort": true,
"bInfo": false,
"sScrollY": "100px",
"bScrollCollapse": false,
"oLanguage": {
sEmptyTable: "",
sZeroRecords: ""
},
"sDom": '<"H"Rlfr>t<"F"ip>',
});
When i declare only the first gridview i´ve no problems and all works fine.
if i declare the second too, first gridview don´t show the columns (only show add and remove buttons i´ve created) and second gridview show first gridview's thead and his own thead below...
I have the error: "Uncaught TypeError: Cannot read property 'className' of undefined"
If anyone knows the solution, i´ll appreciate it, thanks! ;)
This discussion has been closed.