This is a migrated thread and some comments may be shown as answers.

RadioButtons columns in a grid

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
daniel
Top achievements
Rank 1
daniel asked on 28 Oct 2010, 12:11 AM
Hello,

i have a radgrid with 4 colums  2 of the  columns are with radio buttons one colum is named Primary and the other is named Secondary. What I'm trying to do is to select one radio button from one columns, only one of the items in the list can be the primary and only one item can be secondary and no item could be primary or secondary. I wouls like to know how can I acheave this so the primary colums displays only one items selected and the secondary shows only one item selected.

i'm new with radgrids and I would like your help

thanks!

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Oct 2010, 07:24 AM
Hello Daniel,

The following Code Library illustrates how to use RadioButton in ItemTemplate to select a single row in grid at a time.
RadioButton check at a time with row selection

Alter the logic according to your requirement.

Hope this helps,
Princy.
0
daniel
Top achievements
Rank 1
answered on 05 Nov 2010, 08:49 PM
Hi Princy, thanks for your responce.

the problem with this example is that when I select a radiobutton from the Primary column instead of keaping the one from the secundary column checked it unchecks all of the radio buttons on the page and keeps only one checked. what I need is to have one radio button checked in the Primary column and one checked in the secondary column. Also the example does a postback when checking an item, is there a way to not do the postback and do the check on the client side?
thanks
Tags
Grid
Asked by
daniel
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
daniel
Top achievements
Rank 1
Share this question
or