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

Tabs and Images

1 Answer 66 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 16 Feb 2012, 08:17 PM
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.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 21 Feb 2012, 10:39 AM
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 >>
Tags
TabStrip
Asked by
Dave
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or