Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET > Panelbar > Background Image in Panelbar

Not answered Background Image in Panelbar

Feed from this thread
  • Posted on Apr 4, 2008 (permalink)

    Hi,
    I am using panelbar. now i want to place image in panelbar background. Any one knows this solution. i can able to give back-color of RadPanelbar but i am unable to findout the property of background image.


    Thanks,
    Faisal

    Reply

  • Shinu MVP Shinu's avatar

    Posted on Apr 4, 2008 (permalink)

    Hi,

    Check out the following help article.
    Use images to set the appearance of the panelbar

    Shinu.

    Reply

  • Posted on Apr 4, 2008 (permalink)

    <rad:RadPanelBar id="RadPanelBar1" runat="server" Skin="None">
       
    <Items>
           
    <rad:RadPanelItem ImageUrl="Images/Products.gif" ImageOverUrl="Images/ProductsOver.gif">
              
          </rad:RadPanelItem>
          
       </Items>
    </
    rad:RadPanelBar>

    i want to apply background image complete RadPanelBar. eg; <rad:RadPanelBar color="grey" id="RadPanelBar1" runat="server" Skin="None">


    Thanks
    Faisal

    Reply

  • Sandra Walters avatar

    Posted on May 5, 2009 (permalink)

    I know this thread is rather old, but I was looking for a solution to this issue and found one that suited my application, so I'm posting it here.  It appears the original poster was attempting to set the background image of the entire RadPanelBar control, which is also what I wanted to accomplish also.  Shinu, the link you provided discusses how to set images within the RadPanelBar's Items, which is entirely different.

    My app is using a RadSplitter control with two RadPanes:  a pane on the left side, which contains a RadPanelBar, and a pane on the right side, whose contents reflects the user's menu choice.  I'm using a fixed height for the RadSplitter for a variety of reasons not relevant to this issue.  The result is that the menu items do not completely fill the RadPane, and I'm left with a bland white rectangle underneath the menu items, filling what's left of the RadPane.  (This, by the way, is the color setting of the RadPanelBar's background color for the skin I've chosen.)  That bland white rectangle looks...well...bland.  I couldn't find a way to jazz up the RadPanelBar's background directly, but I found that putting it inside an asp:Panel did the job.  Here's the code snippet for the whole RadPane.  Hopefully this can help someone else.

                       <telerik:RadPane ID="RadPane2" runat="server"  
                            Height="100%" Width="130px"    
                            Scrolling="None" MinWidth="80" MaxWidth="180"
                            <asp:Panel ID="Panel1" BackImageUrl="~/images/fala.png" Width="100%" Height="100%" runat="server"
                           <telerik:RadPanelBar ID="rpbLeftMenu" runat="server"  
                                DataFieldID="PK_MenuItemID"  
                                DataFieldParentID="MenuParentID"  
                                DataTextField="DisplayText" 
                                DataNavigateUrlField="Path" 
                                DataSourceID="ldsMenu"  
                                Width="100%" 
                                EnableAjaxSkinRendering="true" 
                                OnItemClick="rpbLeftMenu_ItemClick" 
                                OnItemDataBound="rpbLeftMenu_ItemDataBound" 
                                PersistStateInCookie="True"
                                <CollapseAnimation Duration="100" Type="None" /> 
                                <ExpandAnimation Duration="100" Type="None" /> 
                            </telerik:RadPanelBar> 
                            </asp:Panel> 
                            <asp:LinqDataSource ID="ldsMenu" runat="server" ContextTypeName="MyDataContext" 
                                 OnSelecting="ldsMenu_OnSelecting"
                            </asp:LinqDataSource>                      
                        </telerik:RadPane> 
     

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET > Panelbar > Background Image in Panelbar

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.