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

RadioButtonList in RibbonBarTemplateItem - Selected=True does not work.

10 Answers 141 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Barbaros Saglamtimur
Top achievements
Rank 1
Barbaros Saglamtimur asked on 05 Aug 2011, 08:17 AM
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?

10 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 10 Aug 2011, 03:39 PM
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.

0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 26 Aug 2011, 12:36 PM
Any news? This problem still persists @ version 2011.2.823

TIA.
0
Kate
Telerik team
answered on 31 Aug 2011, 03:43 PM
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 >>

0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 20 Sep 2011, 02:32 PM
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>
0
Kate
Telerik team
answered on 23 Sep 2011, 01:15 PM
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
0
Andrei
Top achievements
Rank 1
answered on 25 Jun 2012, 09:05 AM
Hi,

I have the 2012.1.215.35 build and the issue is still present. Will it be fixed any time soon?
0
Kate
Telerik team
answered on 27 Jun 2012, 10:55 AM
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.
0
Ildar
Top achievements
Rank 1
answered on 23 Aug 2017, 04:59 PM
I have the 2017.2.503.40 build and the issue is still present. Will it be fixed any time soon?
0
Rumen
Telerik team
answered on 28 Aug 2017, 12:39 PM
Hi Ildar,

I tested the configuration below with the latest 2017.2.711 and was unable to replicate the issue:

<telerik:RadRibbonBar RenderMode="Classic" ID="RadRibbonBar1" runat="server" EnableQuickAccessToolbar="False" RenderInactiveContextualTabGroups="False" SelectedTabIndex="-1">
    <telerik:RibbonBarTab Text="Tab1" Value="Tab1">
        <telerik:RibbonBarGroup Text="Font">
            <Items>
                <telerik:RibbonBarTemplateItem>
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Vertical">
                        <asp:ListItem Value="0">Siyah/Beyaz</asp:ListItem>
                        <asp:ListItem Value="1">Gri</asp:ListItem>
                        <asp:ListItem Selected="True" Value="2">Renkli</asp:ListItem>
                    </asp:RadioButtonList>
                </telerik:RibbonBarTemplateItem>
            </Items>
        </telerik:RibbonBarGroup>
    </telerik:RibbonBarTab>
</telerik:RadRibbonBar>

For your convenience I have recorded a video https://www.screencast.com/t/XqyskwGF demonstrating my test and the project. Can you please modify the project so that it starts to showcase the issue and send it back for examination? 


Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ildar
Top achievements
Rank 1
answered on 29 Aug 2017, 08:43 PM
I already got rid off RadioButtonList and used Barbaros approach.
Tags
RibbonBar
Asked by
Barbaros Saglamtimur
Top achievements
Rank 1
Answers by
Helen
Telerik team
Barbaros Saglamtimur
Top achievements
Rank 1
Kate
Telerik team
Andrei
Top achievements
Rank 1
Ildar
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or