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

Single radiobutton check at a time

1 Answer 75 Views
ListView
This is a migrated thread and some comments may be shown as answers.
El
Top achievements
Rank 1
El asked on 08 Dec 2010, 03:33 AM
I found this article http://www.telerik.com/community/code-library/aspnet-ajax/grid/single-radiobutton-check-at-a-time-with-row-selection.aspx
and it helped me for a while. I made it working partially. The problem is that it does work only on a single page. If paging is applied on the listview and the selected radiobutton (on LOAD) is on the page #2 or higher it will be not unchecked.

How to make it works across all the pages in the ListView? Means if i select radiobutton on a page #5 and then go to page #2 and check new radiobutton the one from page #5 should be unchecked.

Thanks

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Dec 2010, 08:41 AM
Hello El,

When you change RadGrid's page, its items are recreated along with any controls inside. This means any previously selected radio buttons should re-initialize in their default unchecked state. RadGrid's selection is page-based when you enable paging, so neither selected indexes nor checked radio buttons should be persisted in any previous page when you navigate away.

Can you send us some sample code and describe what exactly is your scenario, so that we can identify why you are getting radio buttons in previous pages checked?

Veli
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ListView
Asked by
El
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or