Insert checkbox beside filter(using sDom)
Insert checkbox beside filter(using sDom)
Hey
I'm trying to insert a checkbox beside the filter textbox.
I want the chk box to decide if a specified colom is displayed. I know this wil couse a postback to the server...
Is is possible to insert components using the sDom attribute so it will look soemthing like this "sDom": 'rtlfip',?
Or is there another way to show/hide coloums using a checkbox or somthing else.
By the way.. DataTables is simply awesome:)
Regards
Birger
I'm trying to insert a checkbox beside the filter textbox.
I want the chk box to decide if a specified colom is displayed. I know this wil couse a postback to the server...
Is is possible to insert components using the sDom attribute so it will look soemthing like this "sDom": 'rtlfip',?
Or is there another way to show/hide coloums using a checkbox or somthing else.
By the way.. DataTables is simply awesome:)
Regards
Birger
This discussion has been closed.
Replies
"sDom": 'rtl<"#checkbox">fip'
(or "sDom": 'rtl<"#checkbox"f>ip' if you want the filter INSIDE the same div)
[code]
$('#checkbox').append(...); // or any other jquery/javascript operation
[/code]
http://www.datatables.net/ref#sDom
I would like to have a server control on there to toggle a colom on/off.
But I see that not going to happen..
Your solution works ok and I will find a solution from that.
Again thanks for the support
/Birger