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

Work with app_theme don't work. Please help.

4 Answers 95 Views
Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Hans van Rijnswoud
Top achievements
Rank 2
Hans van Rijnswoud asked on 22 Sep 2010, 11:02 AM
Hi,

We build a web application with only the Telerik controls!
For the moment we manage the skin via the web.config.
So all controls in the pages are without skin attribute.
Now we want to have different skins who are loaded when a customer is logged in the application.

I make a new skin with the Style Builder ( very nice tool ;-)  )
I upload this new skin in my project like an App_Themes.

I put in my webconfig the following code:

<

 

add key="Telerik.EnableEmbeddedSkins" value="false" />

 

<

 

add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

 

<

 

add key="Telerik.Skin" value="MySkin" />

I punt also on the page the theme MySkin.

I can see that all css are loaded but the controls are rendered without style.

I don't know if this approche is the best way for what i want to do.
Also set the information in the web.config is not a solution because the skin is different by customer (I would like to put this in the cs of the master page).

I found a lot of informations, documentations, video etc ... but nothing is very clear for my problem.
I try also differents approche but nothing work.

I'm using the telerik control version 2009.3.1103.20
Is it a problem for the style builder? do i need to migrate to the laste version of telerik?

Could you please help me with this.

In advance thanks,

Edwin.

 

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Sep 2010, 12:22 PM
Hello Edwin,

Probably you have stumbled upon the following:

http://blogs.telerik.com/kamenbundev/posts/10-05-03/internet_explorer_css_limits.aspx

Kind regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 23 Sep 2010, 02:11 PM
Hi Dimo,

Thanks for your tip but this is not the problem.
But I change the approche and now I'm used the telerik Tool for Embedding Custom Skins into an Assembly.

So far it's working but for some controls I don't have the design / images
For the moment I'm using the telerik control Q2009.3.1103.20.
Is it possible that the css who are generated by the telerik style builder are not compatible with this version of telerik controls?
Do I need to migrate to the last version?

I have also problem to import more zip file with the WebResourceAutoBuilder but I will take a look in the code to fix that;-)

In advance, thanks for your answer.

Edwin.


0
Alex Gyoshev
Telerik team
answered on 23 Sep 2010, 03:07 PM
Hello Edwin,

Indeed, the style builder works only with the latest version of the controls. We have no noteworthy skin breaking changes since the Q3 2009 release, though.

Did the embedding work for some controls, and not for others? If so, what is the difference between them - perhaps they are being loaded through AJAX?

Best wishes,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 23 Sep 2010, 04:29 PM
Hi Alex,

Thanks for your answer.
I will update my telerik control with the last version to be sure.

For the moment I test this with the tabs, windows and dock controls.
The tabs is perfect. 
The window is ok but I don't see the actions icons
For the docks, I see nothing.

Below you can see my different settings 
1/ in the web.config
<appSettings>
    <add key="Telerik.EnableEmbeddedSkins" value="false"/>
    <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false"/>
    <add key="Telerik.Skin" value="Linked"/>
  </appSettings>


2/ On the OnInit of the page:

protected override void OnInit(EventArgs e)
        {
            string[] controls = { "TabStrip", "Window", "Dock" };
            base.OnInit(e);
            foreach (var s in controls)
            {
                RadStyleSheetManager1.StyleSheets.Add(new StyleSheetReference(String.Format("LinkedSkin.Linked.Linked.{0}.css", s), "LinkedSkin"));
                RadStyleSheetManager1.StyleSheets.Add(new StyleSheetReference(String.Format("LinkedSkin.Linked.Linked.{0}.Linked.css", s), "LinkedSkin"));
            }
 
        }


3/ Sample of the html code with 2 controls

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
             
    </telerik:RadStyleSheetManager>
    <div>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server">
            <Tabs>
                <telerik:RadTab Text="test1"></telerik:RadTab>
                <telerik:RadTab Text="test1"></telerik:RadTab>
                <telerik:RadTab Text="test1"></telerik:RadTab>
                <telerik:RadTab Text="test1"></telerik:RadTab>
                <telerik:RadTab Text="test1"></telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <br /><br />
        <telerik:RadWindow ID="RadWindow1" VisibleOnPageLoad="true" runat="server" Title="test window" Width="350px" Height="350" Visible="true">
            <ContentTemplate>
                test content window
                <br /><br /><br /><br />
            </ContentTemplate>
        </telerik:RadWindow>
        <br />...

I suppose that the problem is my version of the telerik control.
I will try with the new one and if I have new problem, I will come back to you.

In advance thanks for your help.

Edwin.


Tags
Visual Style Builder
Asked by
Hans van Rijnswoud
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Hans van Rijnswoud
Top achievements
Rank 2
Alex Gyoshev
Telerik team
Share this question
or