Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
radiobuttons within Web Grid
posted

I have used the sample http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=7945 to put mutually exclusive radio buttons into a grid.

On a postback, raised from a button click, I have been unable to determine what radiobutton was selected.

 If I run through each row item on the grid, the value for the column is the html to create the radio button. Is there way on a postback to determine what radiobutton has been selected without having to resort to hidden fields and javascript for each radio button?


I am using 2008 vol 2.

 

  • 1763
    posted

    I think if you want to get the selected radio button you have to look for the container control and(or) every single radio button you have created. You cannot get the value straight from the cell since the only thing the cell is doing in this case is to draw this elements as it's content, but there's no further interaction. You'll have to write the specific code to get the value from the radio control every time you want to get the value from a cell within this column.