oSettings.aoData[iRow] is undefined

oSettings.aoData[iRow] is undefined

OmriOmri Posts: 10Questions: 3Answers: 0

Hello,

I use jquery dataTables version 1.9.4.
I have a dataTable with grouping and I display the row count of each group.
This is the code causing the error:

$(document).ready(function() {
$('#users-table').dataTable()
.rowGrouping({
bExpandableGrouping: true,
fnOnGroupCompleted: function(oGroup) {
var length = $('#users-table tr' + oGroup.groupItemClass).length;
$(oGroup.nGroup).find("td").find("sub").text("[" + length + "]");
}
});
});

and this is the error:
TypeError: oSettings.aoData[iRow] is undefined

Please, can you tell me the cause of the error.

thanks in advance

please accept my sincere greetings

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Is the error in the rowGrouping plug-in? That is third party software and not supported here. I would suggest asking in that project's issue list.

    Allan

  • OmriOmri Posts: 10Questions: 3Answers: 0
    edited December 2014

    Dear Allan,

    Thank you for your reply

    The error is in the function _fnGetCellData(oSettings, iRow, iCol, sSpecific) in the file jquery.dataTables.js.

    I notice that the error happened when iRow parameter is passed null

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Can you link to a test page that shows the issue please? That would greatly assist in my being able to debug it. If you could also provide the page without the rowGrouping plug-in (to discount any possibility of an error there) that would be great.

    Thanks,
    Allan

  • OmriOmri Posts: 10Questions: 3Answers: 0

    Dear Allan,

    I am sorry to reply later.
    In fact, I solve the problem with another way without calling the function rowGrouping()

    Greetings

This discussion has been closed.