View Full Version : [CLOSED] Theming

Feb 19, 2008, 12:37 AM
I'm attempting to implement some theming based on the user themes from extjs at http://extjs.com/learn/Ext_Extensions#User_Themes and I'm not having much luck. Do I need to integrate the css into my asp.net theme or is there a better way to do this?

Feb 19, 2008, 9:52 AM
I'm going to post a detailed tutorial on how to use a custom theme, but basically it's just a matter of including the .css for the new theme after the default .css file has been added by the controls.

The controls automatically add their required JavaScript and CSS into the Page <head>. By default they will be added as the last items in the head. You can control the position of the scripts/css in the head by adding a <cool:ScriptContainer> control into the <head> of your Page.</p>

The link to the custom .css file must be added after the ScriptContainer.</p>


<head runat="server">
    <title>Untitled Page</title>
    <ext:ScriptContainer ID="ScriptContainer1" runat="server" />
    <link href="ExtJS/resources/css/xtheme-green.css" rel="stylesheet" type="text/css" />

The path to the custom xtheme .css and related images folder should be to a location within the web application. The path above (ExtJS/resources/) is a typical location to store the xtheme.</p>




Hope this helps.</p>

Feb 20, 2008, 3:04 AM
You might also be interested in the following forum post which details how to change the embedded Style by using the global Web.config settings or modifying a Session value.


Hope this helps.

Mar 03, 2008, 11:50 PM
Rey posted today about Theme options for ExtJS. Check it out (http://extjs.com/blog/2008/03/03/can-ext-be-skinned-of-course/).

We're also working on broader Theme support for an upcoming release.

Jul 20, 2008, 5:38 PM
I noticed the following extjs thread listing available Theme's. Thought it might be helpful.


Jan 13, 2009, 9:46 PM
very good
it's help for me!