Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Toolbar > Button group behaviour
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Button group behaviour

Feed from this thread
  • Ockert avatar

    Posted on Oct 26, 2009 (permalink)

    I have the following code in an ASP file. When i select any of the last three buttons the first button changes. I'm trying to get a simple group of buttons going where only one can be selected at any time. I don't know what I'm missing.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Performer3._Default" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
        <title>Performer</title> 
        <link rel="stylesheet" type="text/css" href="GPAMaster.css" /> 
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager> 
        <div id="body" class="BodyDiv">  
            <div id="menubar" class="MenuDiv">  
                <telerik:RadToolBar runat="server" CssClass="ToolBar">  
                    <Items> 
                        <telerik:RadToolBarButton CssClass="ToolButton" ImageUrl="img/HiStakeS.png" CheckedCssClass="ToolButtonSelected" 
                            CheckOnClick="True" CheckedImageUrl="img/HiStakeS.png" Value="1" AllowSelfUnCheck="True" 
                            EnableViewState="False" Group="KPA" PostBack="False">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton CssClass="ToolButton" ImageUrl="img/HiStakeH.png" CheckedCssClass="ToolButtonSelected" 
                            CheckOnClick="True" CheckedImageUrl="img/HiStakeH.png" Value="2" AllowSelfUnCheck="True" 
                            Group="KPA" EnableViewState="False" PostBack="False">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton CssClass="ToolButton" ImageUrl="img/HiStakeS.png" CheckedCssClass="ToolButtonSelected" 
                            CheckOnClick="True" CheckedImageUrl="img/HiStakeS.png" Value="3" AllowSelfUnCheck="True" 
                            EnableViewState="False" Group="KPA">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton CssClass="ToolButton" ImageUrl="img/HiStakeH.png" CheckedCssClass="ToolButtonSelected" 
                            CheckOnClick="True" CheckedImageUrl="img/HiStakeH.png" Value="4" EnableViewState="False" 
                            AllowSelfUnCheck="True" Group="KPA">  
                        </telerik:RadToolBarButton> 
                    </Items> 
                </telerik:RadToolBar> 
            </div> 
        </div> 
        </form> 
    </body> 
    </html> 

  • Yana Yana admin's avatar

    Posted on Oct 28, 2009 (permalink)

    Hello Ockert,

    I'm not able to understand the problem, how the first button is changed? It's expected to be unchecked when one of the other buttons is clicked. Please explain in more details.

    Regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • Ockert avatar

    Posted on Oct 28, 2009 (permalink)

    When I click the first button it check as expected. If I click any of the other buttons the first item stay checked but the image change to the image of the last button I checked. It seem like the checked button always move to the first position.

  • Yana Yana admin's avatar

    Posted on Nov 3, 2009 (permalink)

    Hello Ockert,

    I am still not able to observe this issue, could you please open a support ticket and send us a simple page demonstrating the problem there? Thanks a lot

    Greetings,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Toolbar > Button group behaviour