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

How to Disable specific item?

1 Answer 61 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 10 May 2012, 11:12 PM
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

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 15 May 2012, 01:09 PM
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.
Tags
Rotator
Asked by
Cristian
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or