How to Disable specific item?

2 posts, 0 answers
  1. Cristian
    Cristian  avatar
    46 posts
    Member since:
    May 2011

    Posted 10 May 2012 Link to this post

    Hi, I have an applecation in wich I use a Radrotator as a menu declared as follows.
    <table id="tblPregs" runat="server" border="0" cellpadding="3" cellspacing="2"
                            
                            
                            
                           style="border-style: none; background-image: url('http://localhost:37735/img/icloud-background.jpg'); height: 519px; margin-right: 0px;">
                    
                           <tr style="border-style: none"><td align="center" class="style1"
                                  <telerik:RadRotator ID="RadRotator1" runat="server" Height="471px"
                                   Width="936px" RotatorType="CarouselButtons" BorderStyle="None"
                                      style="margin-right: 0px">
                                 <Items>
                                
                                <telerik:RadRotatorItem>
                               <ItemTemplate>
                               <asp:ImageButton ID="imagen"  runat="server" ImageUrl="~/img/1336657679_application-vnd.oasis.opendocument.spreadsheet-template.png"  ToolTip="Reportes"/>
                               </ItemTemplate>
                               </telerik:RadRotatorItem>
                                <telerik:RadRotatorItem>
                               <ItemTemplate>
                               <asp:ImageButton ID="ImageButton1"  runat="server" ImageUrl="~/img/1336659958_control-panel-px-png.png"   ToolTip="Dashboards de control" />
                               </ItemTemplate>
                               </telerik:RadRotatorItem>
                                 <telerik:RadRotatorItem>
                               <ItemTemplate>
                               <asp:ImageButton ID="ImageButton3"  runat="server" ImageUrl="~/img/1336615047_Program-Group.png"  ToolTip="Registro"  />
                               </ItemTemplate>
                               </telerik:RadRotatorItem>
                               </Items>
                             
     
                             
                               </telerik:RadRotator>
     
                               </td></tr>
                       </table>

    Depending on the image button I push the user will be redirected to a different page. Now everything works fine.
    But the three buttons are always enabled. What I want to do is only enable the current item and disable the other two.

    Is it posible to do this?

    Hope your help
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 15 May 2012 Link to this post

    Hi Cristian,

    You can use the attached sample as a reference for implementing a disabled look to all items except the current one.

    If you want to disable a particular ImageButton, you can set its property Enabled to false.

    All the best,
    Slav
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top