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

How to place icons in RadDock titlebars

1 Answer 106 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 31 Oct 2008, 09:11 PM
Is it possible to get an icon in the RadDock titlebar (e.g. next to the title of the dock)?  This is a cool WebParts feature that RadDocks seems to be lacking.

Or do you guys know of a way e.g. with CSS to get this functionality?

thx,
joe

1 Answer, 1 is accepted

Sort by
0
Petko
Telerik team
answered on 03 Nov 2008, 12:29 PM
Hello Joseph,

You can use "TitlebarTemplate" to achieve the desired behavior. Here is an example, that demonstrate that:
http://demos.telerik.com/aspnet/prometheus/Dock/Examples/EditTitle/DefaultCS.aspx

I also prepared a small sample for you, that shows what I believe is the desired behavior:
ASPX:
<form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <telerik:RadDock ID="RadDock1" runat="server" Width="300">  
            <ContentTemplate> 
                RADCONTENT  
            </ContentTemplate> 
            <TitlebarTemplate> 
                <div style="float:left">    
                    <asp:Label ID="Label1" runat="server" Text="RADDOCK"   
                    Font-Bold="true" ForeColor="greenyellow" > 
                    </asp:Label>       
                </div>   
                <div style="float:left">  
                    <asp:Image ID="Image1" ImageUrl="productLogo.gif" runat="server"   
                    Height="20px" BorderColor="red"/>  
                </div> 
           </TitlebarTemplate> 
        </telerik:RadDock> 
    </div> 
    </form> 




Kind regards,
Petko
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Joseph
Top achievements
Rank 1
Answers by
Petko
Telerik team
Share this question
or