Unable to get value of the property 'asSorting': object is null or undefined

Unable to get value of the property 'asSorting': object is null or undefined

jaspreetsinghjaspreetsingh Posts: 13Questions: 0Answers: 0
edited June 2012 in General
Hello,

I am using Server Side processing with C# Web Services below is the code:

Web Method:

[WebMethod]

public SEData[] ServerSideTest()
{
// It returns array of objects.

}



aspx code:


$(document).ready(function () {
$("#grid").dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bServerSide": true,
"sAjaxSource": "GridTest.asmx/ServerSideTest"

});

});

Please let me know how to resolve the issue..

Thanks
Jaspreet Singh

Replies

  • koosvdkolkkoosvdkolk Posts: 169Questions: 0Answers: 0
    Hi,

    "Unable to get value of the property 'asSorting': object is null or undefined"

    Where/when do you want to get the property? I do not see it in your code.
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Sounds like the error is being announced in DataTables core somewhere - likely the number of columns in the HTML !== the number of columns in the Ajax data.

    @Jaspreet: Can you run your table through the debugger or give us a link to the page please.

    Allan
This discussion has been closed.