No data available in tablel

No data available in tablel

ldferrellldferrell Posts: 4Questions: 0Answers: 0
edited September 2011 in General
okay, I have a simple table... a header row and a tbody row. I can see the table normally at a breakpoint just prior to initializing my DataTable object and the datatable is rendered with a header correctly but complains there is no data in the table which is clearly not the case because the the tbody row is populated fine before initialisation of the datatable. Where do I start. I use DataTables elsewhere with no problems and this table is no different than others in the app.

Replies

  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    link to page with the table? How are you populating, server-side, ajax, etc???
  • ldferrellldferrell Posts: 4Questions: 0Answers: 0
    Hi Baseball. thanks. Following is the table. Very Simple. Just can't see what the problem is. I populate the table from javascript. The table is fine in the statement before initialising the datatable. I also get TypeError: Cannot read property 'asSorting' of undefined. This is so frustrating as I use DataTables much elsewhere with no such issues.






    Robert Mondavi WineryCabernet Sauvignon








    Profile






    javascript:
    var search_details_table = $('#evaluation_search_details').dataTable({
    });
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    is not a valid HTML tag.
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    Got any sample data that you are loading, 2 or three rows would be fine.
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    The tag causes HTMLTidy to not work so I'm thinking it may be the culprit, here.
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    edited September 2011
    Try it like this and see if it works:
    [code]






    Robert Mondavi Winery


    Cabernet Sauvignon










    Profile






    [/code]
  • ldferrellldferrell Posts: 4Questions: 0Answers: 0
    I am so embarassed. I have many thousnds of lines of code in this app and know the difference beween row and tr. I'm so sorry to waste your time. Yes it works with tr. the mircale is that Chrome and FF rendered the table fine with idiotic markup like that. thanks again fr pointing out what should have been obvious to me.
This discussion has been closed.