sAjaxSource Usage Issues

sAjaxSource Usage Issues

rickoshayrickoshay Posts: 2Questions: 0Answers: 0
edited July 2009 in General
The sAjaxSource with fnOnInitComplete options work when the TH elements are part of the table markup, but when defining columns using the sTitle attribute of aoColumns, you get the "columns do not match" alert. I have resorted to providing a single dummy record as aaData and deleting that row (the first row) and then deleting that row when fnOnInitComplete handler is called (indicating the ajax data has already been appended).

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Hi rickoshay,

    Firstly, the callback function will be fnInitComplete() (and not fnOnInitComplete()) ( http://datatables.net/usage#fnInitComplete ).

    Secondly, the number of headers which are defined, needs to match the number of columns exactly, or you will get this warning message. Perhaps you could post a link to an example, which would help with debugging this?

    Regards,
    Allan
This discussion has been closed.