Using jQuery Uniform checkboxes in DataTable columns
Using jQuery Uniform checkboxes in DataTable columns
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!
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!
This discussion has been closed.
Replies
[code]
'fnPreDrawCallback': function( oSettings ) {
$.uniform.restore('.checkbox');
}
[/code]