fnAdjustColumnSizing and input type radio

fnAdjustColumnSizing and input type radio

nicobilainenicobilaine Posts: 1Questions: 0Answers: 0
edited November 2012 in Bug reports
Hello,
I have a problem with the function fnAdjustColumnSizing when there are radio buttons in my table, I lose the selection of radio buttons contained in the first line of 'td'.
This is the javascript function 'cloneNode' that clone radios buttons with the same name.
I made a small correction in version 1.9.4 jquery.dataTables.js of adding this line after 3670 :
[code]
$(nTd).find('input[type=radio]').each(function() {
$(this).attr('name', '');
});
[/code]

The result :
[code]
/* Find the biggest td for each column and put it into the table */
for ( i=0 ; i

Replies

  • allanallan Posts: 61,726Questions: 1Answers: 10,110 Site admin
    Hi Nicolas,

    That looks like the right change to make. It is unfortunate that we need to clone nodes, but I don't really say a way around it at the moment. I'll not merge the change into the core at the moment since it wouldn't work on 'select' elements for example - I'll try to thing of another option.

    Until then, your change looks good :-)

    Allan
This discussion has been closed.