Single radiobutton check at a time

2 posts, 0 answers
  1. El
    El avatar
    130 posts
    Member since:
    Dec 2008

    Posted 07 Dec 2010 Link to this post

    I found this article
    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.

  2. Veli
    Veli avatar
    2002 posts

    Posted 11 Dec 2010 Link to this post

    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?

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top