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

Toolbar Button Skin is removed after ASP FileUpload

2 Answers 54 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 19 Jul 2012, 09:07 PM
I have an ASP.Net page that has about 8 tabs that are created from a RadTabStrip control.

On the 1st tab I have a RadToolBar with one button that when clicked opens a modal popup.

On the 5th tab I have an ASP Button that opens a modal popup that contains an ASP FileUpload control.

After I select my file to upload and I click the OK button on that modal popup, it uploads the file and then closes the modal popup.

The problem I'm having is after the modal popup closes and I click on the 1st tab again, the default skin of the RadToolBar buttons are completely gone and it only shows the button text and icon image.

Any ideas why this is happening?

Two images are attached of what it should and shouldn't look like.

2 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 24 Jul 2012, 10:46 AM
Hi Brett,

From the information that you provided it seems that some of the styles get lost once you return to the page containing the RadToolBar control. Please check if you get any errors on the page that might be causing the look that you get. One possible reason for that is using OutputCache. In this case it is possible that the controls that you use lose reference to their scripts and css styles. One solution would be that you manually try to register the skin and the java script files as explained in the following help article:
http://www.telerik.com/help/aspnet-ajax/menu-output-cache.html 

All the best,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Brett
Top achievements
Rank 1
answered on 24 Jul 2012, 12:47 PM
I actually ended up finding the solution. I had to put "RadToolBar1.EnableAjaxSkinRendering = true;" in the page load in order for the button styles to not disappear on postback.
Tags
ToolBar
Asked by
Brett
Top achievements
Rank 1
Answers by
Kate
Telerik team
Brett
Top achievements
Rank 1
Share this question
or