How do I add Infragistics to a existing MVC 5 Project in Visual Studio 2013? I installed infragistics but I cant figure out how to add it to a project. I followed the youtube video but when I did my nav bar disappeared, and some other issues occurred with formatting a igGrid and I couldn't use some css classes, so I'm wondering if there is a proper way to install it in MVC5.
Hello Peter,
Thank you for posting in our community.
Please refer to the following link from our documentation, that can help you understand developing MVC applications with igGrid:
http://help.infragistics.com/Doc/jQuery/2013.1/CLR4.0/?page=igGrid_Developing_ASP_NET_MVC_Applications_with_igGrid.html
If you have any questions after that, please let me know.
Sincerely,
Tsanna
I got this error:
Attempt by security transparent method 'Infragistics.Web.Mvc.HtmlHelperExtensions.Infragistics(System.Web.Mvc.HtmlHelper`1<!!0>)' to access security critical type 'System.Web.Mvc.HtmlHelper`1<TModel>' failed.\n\nAssembly 'Infragistics.Web.Mvc, Version=4.14.1.2031, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.":""}
Update:I changed the assembly reference from version 4 to 5 then added Infragistics4.Web.v14.1 and infragistics4.Web.JQuery.v14.1 and the page loads but none of the infragistics iggrids do or the simple igRating I made to test.
Also, I made a new mvc project and this time I used the nugget package to install infragistics. I created a bundle for the css and the js and included them in the layout.
I added more refferences and got this error:
Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
I keep making new project and following the youtube video that infrigistics posted on "Setting Up your MVC Project" as closely as I can since I'm using MVC5 and VS2013. When I do, at the end the ratings bar does not show up and there is no error message indicating what happened.
Update:
I think it has to do with the JS and css files since
@Html.Infragistics().NumericEditor().Render() works
but
@Html.Infragistics().Rating().ID("igRating1").VoteCount(10).ValueAsPercent(false).Value(4).Precision(RatingPrecision.Exact).Render() doesn't work
can I get a list of files and folders I have to include and where to get them. I looked up on the forms and I found a wide range of answers but I am not sure which ones I have to include and where to get them. Thank you for your time.
Please verify that you're referencing the required resources for your project properly, which means that you should give the right path to them if you're including them locally. Otherwise you may use the Content Delivery Network for IgniteUI and reference the required resources from it: http://help.infragistics.com/Help/Doc/jQuery/2013.1/CLR4.0/html/Deployment_Guide_Infragistics_Content_Delivery_Network(CDN).html
Details on which resources to include can be found in the following help topic: http://help.infragistics.com/Help/Doc/jQuery/2013.1/CLR4.0/html/Deployment_Guide_JavaScript_Resources.html#referencing_resources
I've also created a sample with igRating control in order to demonstrate you that it works properly.
If you have any further questions, please let me know.
I cant run the Example you gave me it gives an error:
CS0246: The type or namespace name 'Infragistics' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error Message: CS0246: The type or namespace name 'Infragistics' could not be found (are you missing a using directive or an assembly reference?)Source Error:
Line 1: @using Infragistics.Web.Mvc Line 2: @{ Line 3: ViewBag.Title = "Index";