I created a new ASP.NET Web Forms app and placed an Infragistics web control onto the Site.Master page, but do not know how to use Infragistics CSS to style the control.
How do I use Infragistics css styles in a WebForms app? (Not MVC)
Stupid newbie questions:
1. Should I include an Infragistics css file from somewhere? Where is it located? What file name?
2. Should I copy an Infragistics folder structure to my app folders? Which Infragistics folders? Where are they located?
3. Do I need to specifically set CSS properties on Infragistics web controls, or will they "find" the css somewhere?
4. Is there a way to easily change the style of all Infragistics controls in my app with a few simple clicks?
Hello Ray,
In order to use our CSS styles in your application all you need to do is adding an Infragistics control in your application and then opening the designer. Then you will receive message that the ig_res folder would be added to the directory of your project, which will import all of the CSS styles required for our controls.
Inside the ig_res folder there are many different CSS files you can review them and determine what you would like to change and then those changes can be applied in the CSS file for the page or in the style tag inside the page. This is all you would need to do.
In addition to this I would like to share some additional documentation and blogs that you might find helpful in understanding the styling of our controls:
Understanding Styles
WebDataGrid CSS styling guide
Infragistics ASP.NET controls and Bootstrap styling
Please let me know if you have any questions.
Regards, Ivan Kitanov
No, the ig_res was not added to my project. Nothing was added to my project.
So, I created a completely new ASP.NET Framework Web Forms project and tried again. Again... nothing was added to this new test project after dropping the Infragistics grid onto Site.Master in VS, even after opening the page designer.
I concluded that I must do this blindly.
I fished around and found ig_res in the Infragistics ASP.NET installation folder, and added it manually. I also found infrgistics.theme.css and infragistics.css files in the installation folder. I was confused by all these different css files, so I copied them all to my project. I don't know if they will work or not.
I also don't know about JavaScript and jQuery scripts for the Infragistics controls. Nothing was added to my project, so I don't if client-side or jQuery operations will work.
I guess I have to figure this out myself. Not happy.