Customize table cell content based upon table data
Customize table cell content based upon table data
DavidBoomer
Posts: 21Questions: 0Answers: 0
I have a dataTable where I am dynamically adding a td and a radio button in column 1 with fnCreatedCell. The requirement came down today that not all rows should have a radio, and this should be decided based upon the content of one of the other columns in the table. So if a group of rows has a "1" in column "foo", only the first row of said group of rows should have a radio button. If column "foo" then has a "2", then the first row would again have a radio button (I realize as I'm writing this that I will need to turn off sorting as that will obviously make mincemeat out of the result). So my question is how I might dynamically add a radio button to only certain rows based upon data in a different column of the same row.
Thanks much,
David
Thanks much,
David
This discussion has been closed.
Replies