Hi swallace,The following code demonstrates where to add the global "coolite" configSection to the Web.config. Each of the properties/attributes are listed with a bit of description, optional values and default values.
<?xml version="1.0"?><configuration>
<configSections>
<section name="coolite" type="Coolite.Ext.Web.GlobalConfig"/>
</configSections>
<!-- COOLITE GLOBAL CONFIGURATION ATTRIBUTES -->
<!-- cleanResourceUrl = true|false
The Coolite controls can clean up the autogenerate WebResource Url so they look presentable.
Default is true -->
<!-- gzip = true|false
Whether to automatically render scripts with gzip compression.
Default is true. -->
<!-- scriptAdapter = Ext, jQuery, Prototype, YUI
Which script adapter to use.
Default is "Ext" -->
<!-- renderScripts = true|false
Whether to have the coolite controls output the required JavaScript includes or not.
Gives developer option of manually including required <script> files.
Default is true -->
<!-- renderStyles = true|false
Whether to have the coolite controls output the required StyleSheet includes or not.
Gives developer option of manually including required <link>/<style> files.
Default is true -->
<!-- scriptMode = Release, Debug
Whether to include the Release (condensed) or Debug (with documentation) JavaScript files
Default is "release" -->
<!-- theme = Default, Gray
Which embedded theme to use.
Default is "Default" -->
<coolite
cleanResourceUrl="true"
gzip="true"
scriptAdapter="Ext"
renderScripts="true"
renderStyles="true"
scriptMode="Release"
theme="Gray"
/>
</configuration>
The Theme can also be set at a Session level by using the ScriptManager.RegisterSessionTheme() method or directly by setting the "Coolite.Theme" Session value. Setting the Theme in the Session will override a Theme set in the Web.config.
Example
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Coolite.Web.UI.ScriptManager.RegisterSessionTheme(Coolite.Web.UI.Theme.Gray);
}
</script>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
HttpContext.Current.Session["Coolite.Theme"] = Coolite.Web.UI.Theme.Gray;
}
</script>
I have a detailed tutorial and screencast in the works, but they're not quite done. I'll update this thread once they're ready.
Hope this helps.
--
Geoffrey McGill
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter