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

[Solved] Radio button selection in gridview

4 Answers 186 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anil P Abraham
Top achievements
Rank 2
Anil P Abraham asked on 19 Jan 2010, 02:42 PM
Hi

I have placed radio  button inside  rad grid view , and my task is to select the data the row of  selected radio button (double click to select the row is not needed here )
and the issue is when the  grid has more than 10 records , the vertical scroll bar is enabled automatically, and if i select the first row then change the radio button selection to 4 th row only 4th row is selected . and when i change the selection to 12 th row (scroll down to view 12 th item) the row gets selected and after i scroll-up , saw that radio button selected in 4th row is still in selected mode



as only the visible rows selected radio buttons are chaging , it has not updating un visible rows

any idea of solving the issue

Thanks

Anil

4 Answers, 1 is accepted

Sort by
0
Guo Bin
Top achievements
Rank 1
answered on 15 Aug 2011, 04:08 AM
we have encounter this problem also, anybody can help to solve it?
0
Maya
Telerik team
answered on 15 Aug 2011, 09:54 AM
Hello,

In order to provide you with an appropriate solution, I would need a bit more details. How do you define those radio buttons - in a CellTemplate for a column ? How do you select a particular row, how do you deselect it ?  
Generally, any relevant information would be helpful.

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Guo Bin
Top achievements
Rank 1
answered on 16 Aug 2011, 01:49 AM
i have do some binding in Row_loaded event, and i found that every time i scroll vertical bar, it will fire the Row_loaded event, so i think that may be the problem, i will do some investigate on it.

somehow i want to know is there some method can only fire at gridview data bind no other event like scroll?
0
Maya
Telerik team
answered on 16 Aug 2011, 08:05 AM
Hello Guo Bin,

Indeed, the RowLoaded event will be fired each time a new row is created and loaded. May you clarify what is the final goal that you want to accomplish ? How do you define the RadioButtons ? Why do you want to use the RowLoaded event ?  


Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
GridView
Asked by
Anil P Abraham
Top achievements
Rank 2
Answers by
Guo Bin
Top achievements
Rank 1
Maya
Telerik team
Share this question
or