'length': object is null or undefined
'length': object is null or undefined
tsmith
Posts: 4Questions: 0Answers: 0
Hello, I'm currently using Datatables as a client-side "skin" for my asp.net Gridview control and it works perfectly. Although when I try to attach it to a asp.net Listview control, I get the error below:
Line: 31
Error: Unable to get value of the property 'length': object is null or undefined
I get this error when debugging and in IE9. I don't know what it means and because of this I can't fix it. I ensured that the page html does include a and tags. I actually made the html look exactly like the gridview's html and it still didn't work.
Please help me, I would love to use Datatables again for this application. Thanks.
function pageLoad() {
$('#orders').dataTable({
"aaSorting": [],
"aoColumns": [
{ "bSortable": false, "bSearchable": false },
null,
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false }
]
});
};
Line: 31
Error: Unable to get value of the property 'length': object is null or undefined
I get this error when debugging and in IE9. I don't know what it means and because of this I can't fix it. I ensured that the page html does include a and tags. I actually made the html look exactly like the gridview's html and it still didn't work.
Please help me, I would love to use Datatables again for this application. Thanks.
function pageLoad() {
$('#orders').dataTable({
"aaSorting": [],
"aoColumns": [
{ "bSortable": false, "bSearchable": false },
null,
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false },
{ "bSortable": false, "bSearchable": false }
]
});
};
This discussion has been closed.
Replies
function pageLoad() {
$('#orders').dataTable({
"bSort": false,
"bAutoWidth": false,
"aoColumns": [
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" }
]
});
};
Thanks,
Allan
Name
Plan
Objective
Step
Note
Due Date
Simpson, Lora
Schizzna, Lora
I'm guessing it has something to do with "colspan" attribute.
Allan