Hi,
I have a grid with a group by set in code. The user can't change the group by. The grid also has a TemplatedColumn. That column has a CellTemplate of an <input type="radio" /> which has the name property (radio button group) set to the same string that controls the group by. In effect this gives me the ability to specify a specific row per group using a radio button. I have a requirement now to either: clear all of the radio buttons for a single group, which I could do with javascript but where would I put the button. (I could actually use the "clear" radio button on click js hack, but I'm not a fan of the non standard user interface implications.) or add a "none" radio button to the header of the column.
I decided to add a none radio button to the header. I'm having some problems getting access to the unique instance of the radio button in the header. In the rendered html I can see the 3 different radio buttons in the headers, but in the code behind, no matter how I try to access them I just keep getting the same one. In fact, I have code to insert a name property into a literal control that has a input type="radio" in it, and I end up inserting the name property 3 times into the same radio button, which when rendered, turns into 3 copies of the radio button each with the name property 3 times.
Is there any way to get access in the code behind to the 3 unique versions of the HeaderItem that I see rendered?
If not I'm probably going to change to a heirachical grid and ditch the group by.