ColReorder fails with theme roller

ColReorder fails with theme roller

khaoskhaos Posts: 47Questions: 11Answers: 0
edited February 2011 in Plug-ins
I am using the html table from the samples here: If I add theme roller support ""bJQueryUI": true" then ColReorder throws an error "'aoColumns[...].bVisible' is null or not an object" (in IE but not Chrome)

[code]








<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">









$(document).ready(function () {

o2Table = $('#example').dataTable({
"sPaginationType": "full_numbers"
,"aoColumns": [ { "bSortable": false }, null, null, null, null]
, "sDom": 'C<"clear">lfrtip'
, "bJQueryUI": true
, "oColVis": { "buttonText": "Customize columns"}
, "sDom": 'Rlfrtip'
});

});





Rendering engine
... SNIP ...
CSS grade








[/code]

Replies

  • khaoskhaos Posts: 47Questions: 11Answers: 0
    anyone?
  • vicayavicaya Posts: 14Questions: 0Answers: 0
    I think you need to use sDom:'<"H"Rlfr>t<"F"ip>' if you use bJQueryUI:true.
  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Also make sure you have the latest ColReorder from here (the 'nightly'): http://datatables.net/download/ . There was a bug in the shipping version which causes this - sorry. The new version will be released soon.

    Allan
  • khaoskhaos Posts: 47Questions: 11Answers: 0
    Great will try this out today/tomorrow.
This discussion has been closed.