Template section

3 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 04 May 2011 Link to this post

    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. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 06 May 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 10 May 2011 Link to this post

    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.

Back to Top