Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
360
AppStyling Works from the Web.config but not at runtime.
posted

Two related issues

1.)
AppStyling Works fine from the Web.config but not at runtime.

In the Master Page:

using Infragistics.WebUI.Shared.AppStyling;


protected void Page_Load(object sender, EventArgs e)
{
AppStylingManager settings = AppStylingManager.Settings;
settings.EnableAppStyling = true;
settings.StyleSetPath = "~/ig_res";
settings.StyleSetName = "Appletini";
}

Does not change the style, it remains "Default", however I can change the style from the webconfig using:


<infragistics.web styleSetPath="~/ig_res" styleSetName="Appletini" enableAppStyling="true"/>

 

2.)
Also, does anyone know where the image page property actually is. It is refered to in the help but doesn't bother telling you anything about it other than it is used by appstyling to find the image dir.

In the Portfolio example the images are set without any path, so there must be a setting somewhere.

 

Parents
No Data
Reply
  • 995
    posted

    Hi,

    To apply the styles to the web project you have to follow these steps:

    1.       Copy the styles (Appletini) from default installation path to project directory.

    2.       Set the EnableAppStyling property to true for an Infragictics controls.

    3.       In page_load event of the Master page

    Infragistics.WebUI.Shared.AppStyling.AppStylingManager.Settings.EnableAppStyling = true;

            Infragistics.WebUI.Shared.AppStyling.AppStylingManager.Settings.StyleSetPath = Name of the folder

            Infragistics.WebUI.Shared.AppStyling.AppStylingManager.Settings.StyleSetName = "Appletini";

    The default installation directory for the styles and its images is:

    C:\Documents and Settings\All Users\Documents\Infragistics\NetAdvantage for .NET 2009.1\ASP.NET\StyleLibraries

Children
No Data