Using jQuery Uniform checkboxes in DataTable columns

Using jQuery Uniform checkboxes in DataTable columns

psenechalpsenechal Posts: 32Questions: 2Answers: 0
edited February 2013 in General
Having a bit of a problem here. I have checkboxes in my columns, and I'm using jQuery Uniform to style them during the fnDrawCallback function. The problem is occurring when filtering the table or using drag & drop sorting. Apparently when the table redraws, it's placing another instance of the styled checkbox just above the original one. If you keep filtering, they keep stacking.

Does anyone know how to prevent this happening so it only attempts to style them once or maybe unstyles them before trying to style them again? I tried $.uniform.restore('mySelector') before applying the uniform style and that didn't work at all.

Any ideas are greatly appreciated. Thanks!

Replies

  • psenechalpsenechal Posts: 32Questions: 2Answers: 0
    Figured it out...I added the following function:
    [code]
    'fnPreDrawCallback': function( oSettings ) {
    $.uniform.restore('.checkbox');
    }
    [/code]
This discussion has been closed.