RadioButtonList in RibbonBarTemplateItem - Selected=True does not work.

8 posts, 0 answers
  1. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 05 Aug 2011 Link to this post

    Here is my code

    <telerik:RibbonBarTemplateItem>
        <Template>
                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Vertical">
                            <asp:ListItem Value="0">Siyah/Beyaz</asp:ListItem>
                            <asp:ListItem Selected="True" Value="1">Gri</asp:ListItem>
                            <asp:ListItem Value="2">Renkli</asp:ListItem>
                        </asp:RadioButtonList>
        </Template>
    </telerik:RibbonBarTemplateItem>

    ListItem Selected="True" does not work. All items appear deselected. Am I missing something?
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 10 Aug 2011 Link to this post

    Hi,

    Thank you for the report.
    I forwarded your request to our development team for further investigation.

    Your points have been updated for the report.

    Kind regards,
    Helen
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 26 Aug 2011 Link to this post

    Any news? This problem still persists @ version 2011.2.823

    TIA.
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 31 Aug 2011 Link to this post

    Hello Barbaros,

    Although the bug is not fixed yet, it is already scheduled and we will do our best to be done for the up coming Service Pack. Please accept our apologies for the cause inconvenience. 

    Regards,
    Kate
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 20 Sep 2011 Link to this post

    Ok, SP is already out and there is no fix yet. Anyway here is my solution for those who faced same problem.

    Define your radios (either RadioButtonList or inpt type="radio") as usual. eg;

    <input type="radio" value="somevalue" name="namegoeshere" id="theId" checked="checked">
     
    <asp:RadioButtonList ID="ColourRadioButtonList" runat="server" RepeatDirection="Vertical">
        <asp:ListItem Value="0">Text1</asp:ListItem>
        <asp:ListItem Selected="True" Value="1">Text2</asp:ListItem>
        <asp:ListItem Value="2">Text3</asp:ListItem>
    </asp:RadioButtonList>

    And here is the JavaScript to find the checked radio(s) and re-check.

    <script language="javascript" type="text/javascript">
    function reCheckRadios() {
        var theRibbon = document.getElementById("<%= RadRibbonBar1.ClientID %>");
        var nodeList = theRibbon.getElementsByTagName('input');
        for (var i = 0; i < nodeList.length; i++) {
            if (nodeList[i].getAttribute('type') == 'radio' && nodeList[i].defaultChecked == true) {
                nodeList[i].checked = true;
            }
        }
    }
           
    window.onload = reCheckRadios
    </script>
  7. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 23 Sep 2011 Link to this post

    Hi Barbaros,

    Indeed we could not manage to fix the issue for the service pack due to more urgent task that we had to accomplish. However, our development team is currently working on it and it probably will be fixed for some of the next coming internal builds.

    Regards,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. Andrei
    Andrei avatar
    5 posts
    Member since:
    Jul 2010

    Posted 25 Jun 2012 Link to this post

    Hi,

    I have the 2012.1.215.35 build and the issue is still present. Will it be fixed any time soon?
  9. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 27 Jun 2012 Link to this post

    Hello Andrei,

    Indeed the issue has not been fixed yet since it turned to be a more complex and time consuming one. We are still working on it and doing our best to have it done for the coming official release of the controls.

    All the best,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017