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
115
Wouldn't it be nice...
posted

...if we could share styles with each other just by posting one file?

  • 4555
    posted


    Hi,

    The recommended approach for using our AppStylist styles is to use a directory referenced through our API either in the settings of the control or the web.config. This is implemented out of the box by way of the ig_res folder which is automatically configured for you at design time. The benefit of using our API to load the AppStylist styles is that we have the opportunity to load only the stylesheets that are needed for the controls on the page. This allows us to send only the necessary stylesheets needed for the controls on any given page so even though the directory contains all of the stylesheets for all of the controls, only the necessary css stylesheets are sent with the response thus minimizing the amount of css that has to be sent.

    We also understand the need for some developers to standardize on one folder for styling and  we have new features regarding this functionality in the coming releases. Our plans are to deliver the functionality to not only consolidate the stylesheets into one master stylesheet and minifying this stylesheet to even further minimize the size of responses.


    While this functionality is being developed for the upcoming releases you have a couple of options:


    o   You can use the ig_res folder for Infragistics stylesheets side-by-side with your own styles in the App_Themes folder


    o   You can delete any stylesheets that you don't use. For instance, if you don't use the SpellChecker, you can delete the ig_spellCheckerDialog.css file. For a list of which stylesheets are used for which control, you can see this link: http://blogs.infragistics.com/blogs/engineering/archive/2010/08/10/which-are-my-css-files.aspx


    o   You can also create your own master file by copying the css from each individual stylesheet into a master stylesheet which you then can place in your App_Themes folder
     
    Magued