Hi,
I like to set the css path for all Infragistics control to one path and the images to another path. Can I accomplish that by configuring the web.config?
Thank you,
Trent
Trent,
You can control where the styleSets are loaded from by setting the StyleSet path in the Web.Config though the css and images are meant to be in the structure where the images folder is a child of the styleset folder. The styleset is meant to be used as a whole, changing this would add complexity to changing the styleset that is being used and at this time is not possible as there are some image paths that are used within the controls that use paths based on the styleset path.
Let me know if you have any questions with this matter.
Hi Troy,
On our sites, the css are only allow in the theme folder. Also, our images are in an "image" folder, which is not in the theme folder. It is purely for organizable purposes. Another issue is that the Infragistics control automatically add the css link with the "/ig_res/" folder in the html. But since the css file doesn't exist in the "/ig_res" folder, my firewall program tells me that there is a missing file. Hence I would like to control where Infragistics locate the css and images. But it looks like that is not possible.
Hi tnguyen13,
The IG controls have a ig_res folder that contains all the styles; each style will have a sub-folder for its images (http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.2/CLR4.0/html/Web_Enabling_Application_Styling_Using_the_Web_Config_File.html).
Are you aiming to separate out the images folder from ig_res? And, then to have it called in the web.config (...infragistics.web styleSetName="Default" styleSetPath="~/ig_res"/)? The infragistics.web tag does not currently have a property to set the path for the images folder separately.
If so, can you tell me your objective for why you want to take this approach? Perhaps I can offer an alternative approach.
Thanks,
Troy