Tabs and Images

2 posts, 0 answers
  1. Dave
    Dave avatar
    38 posts
    Member since:
    Jul 2007

    Posted 16 Feb 2012 Link to this post

    I am using Q2 2011 and having some issues with the images for Tabs.
    On Page_Load, I am adding tabs to a RadTabStrip. The TabStrip is in an RadAjaxPanel with EnableAjax set to true.

    <telerik:RadTabStrip id="rtsTabs" runat="server" skin="Office2007" AutoPostBack="true"></telerik:RadTabStrip>


    For Each warehouse as OrderWarehouse In Destination.OrderWarehouses
     
    Dim newTab as New RadTab(warehouse.Name, warehouse.ID)
    newTab.ImageURL = "~/DesktopModules/MyModule/Images/ok.gif"
    rtsTabs.Tabs.Add(newTab)
     
    Next

    When the page loads, the tabs look great and the images are displayed correctly. The first tab is selected by default. When I click on another tab, the callback occurs and I handle the TabClick server event. During the callback, the tabs are not modified at all. When the page comes back, the images are now broken and the paths have changed.

    So I am on a DNN site, on an edit page. The URL of the page is: http://localhost/MyProject/Orders/tabid/54/ctl/EditOrder/mid/363/Default.aspx

    After the page loads, the URL of the image is
    http://localhost/MyProject/DesktopModules/MyModule/images/ok.gif

    After the callback, the URL of the image is
    http://localhost/MyProject/Orders/tabid/54/ctl/EditOrder/mid/363/DesktopModules/MyModule/images/ok.gif

    Any reason for the change in the ImageURL when the tabs werent modified during the callback? Am I missing something?

    Also, if I disable Ajax, the Images work correctly and the ImageURL does not change.
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 21 Feb 2012 Link to this post

    Hello David,

    The experienced behavior is rather strange and we haven't encountered it before.

    I've performed a couple of tests using 2011.2.915 version of the controls and everything is working on my side. Could you please test with the latest version of the controls and let us know whether you experience the same issue. Also please set the EnableAjaxSkinRendering="true" property of the RadTabStrip.

    All the best,
    Dimitar Terziev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top