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

Template section

2 Answers 33 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 04 May 2011, 07:28 PM
I want to have this structure

BUTTON | <TEMPLATE AREA> | BUTTON

So I just want the template area to show a pager count which I define in my javascript.

How can I get it to just be a blank toolbar "zone" instead of a physical button which gets click events\etc (styling applied on hover\click)?

Thanks,
Steve

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 06 May 2011, 01:40 PM
Hello Steve,

You can add a RadToolBarButton, but set it's Enabled property to false. That way it can't be clicked or give the impression that it can be clicked.

I hope that helps
0
Kate
Telerik team
answered on 10 May 2011, 01:31 PM
Hello Steve,

Did you try to use ItemTemplate of the RadToolBarButton? Here is the code. You could also place any control that you need on the place of the label that is used in the example:
<telerik:RadToolBar ID="RadToolBar1" runat="server">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="Button 0">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton runat="server" IsSeparator="true">
                </telerik:RadToolBarButton>
               <telerik:RadToolBarButton runat="server" >
               <ItemTemplate>
                   <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
               </ItemTemplate>
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton runat="server"  IsSeparator="true">
                </telerik:RadToolBarButton>
                <telerik:RadToolBarButton runat="server" Text="Button 3">
                </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
 

All the best,
Kate
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.

Tags
ToolBar
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Cori
Top achievements
Rank 2
Kate
Telerik team
Share this question
or