Is a jQuery UI buttonset in tfoot possible?
Is a jQuery UI buttonset in tfoot possible?
robertbrower
Posts: 158Questions: 1Answers: 0
Is a jQuery UI buttonset in tfoot possible? I'm trying to do it, but I'm having problems with the radio button's checked state. I've really no clue what is going on and am more or less just looking for any obvious NO answer.
The scenario is complex. I've got a jQuery UI Layout. Inside the west pane of the layout is an accordion with 3 panes. Inside each accordion pane is a DataTable. Inside the tfoot of each DataTable there is a buttonset as described on the jQuery UI button page.
The radio type input elements with the checked="checked" attribute set do not look checked. If I click on one then it becomes checked, but then if I change to another accordion pane, and return to the original, the checked state is just not recognized even though it has the attribute.
I know it's not a lot to go on, but looking for possible examples, tips, etc. Thanks.
Robert
The scenario is complex. I've got a jQuery UI Layout. Inside the west pane of the layout is an accordion with 3 panes. Inside each accordion pane is a DataTable. Inside the tfoot of each DataTable there is a buttonset as described on the jQuery UI button page.
The radio type input elements with the checked="checked" attribute set do not look checked. If I click on one then it becomes checked, but then if I change to another accordion pane, and return to the original, the checked state is just not recognized even though it has the attribute.
I know it's not a lot to go on, but looking for possible examples, tips, etc. Thanks.
Robert
This discussion has been closed.
Replies
Allan
Perhaps it has to do with the Accordion...
Allan
http://jsfiddle.net/atomofthought/5Lh9P/
The problem is that when scrolling is enabled, DataTables will clone the footer, including all the child elements. It is put very briefly into the document to layout the columns correctly, the upshot of which is that your radio button looses its checked state since only one radio button can be checked. Chrome etc I guess must favour the newly inserted element while IE8 doesn't.
It workaround is to recheck it after DataTables has initialised: http://jsfiddle.net/5Lh9P/2/
Its a bit crap, but that's the best I can think of at the moment!
Allan