I tried to use a mix of what i found online and your sample on the IgniteUI page and the default app in VS2012 and the code generated from the mvc helper is saying undefined is not a function. Here is the code i have on the index and what the controller is doing.
@(Html.Infragistics()
.Grid<NOMISe.eSIMON.Web.UI.Areas.Admin.Models.UserIndexView.UserIndexViewEntity>() .ID("userGrid") .Columns(column => { column.For(x => x.ID).HeaderText("ID").DataType("string").Hidden(true); column.For(x => x.DisplayName).HeaderText("Full Name").DataType("string").Width("20%"); column.For(x => x.Email).HeaderText("Email").DataType("string").Width("20%"); column.For(x => x.Status).HeaderText("Status").DataType("int").Width("10%"); column.For(x => x.Department).HeaderText("Department").DataType("string").Width("25%"); column.For(x => x.ExpirationDate).HeaderText("Expiration Date").DataType("dateLong").Width("25%"); }) .Width("100%") .Height("600px") .PrimaryKey("ID") .DataBind() .Render())
the controller:
[PermissionAttribute(Core.Security.SecurityMask.View)] public ActionResult Index() { UserIndexView viewModel = new UserIndexView();
IEnumerable<UserIndexView.UserIndexViewEntity> userList = from user in userService.All() select new UserIndexView.UserIndexViewEntity { ID = user.ID, DisplayName = user.DisplayName, Email = user.Email, Status = user.Status, Department = user.Department, ExpirationDate = user.ExpirationDate };
viewModel.UserIndexViewEntitys = userList;
return View(viewModel); }
Yeah i forgot to add more data about version etc i am using. I am using MVC 5/EF6.1.1/jquery 2.1.1/ jqueryui 1.10.4. I can try and use the MVC 4 dll instead of the MVC 5 dll and see if it works which would then indicate that there is an issue with the MVC 5 dll
Hello ekolluri ,
I’ve tested this on my side in a similar scenario however I was not able to reproduce the issue you’re describing.
Please refer to the sample I’ve previously attached and test it on your side.
Whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Also please note that our product ships with project templates which you can use to get started with the controls.
In order to use one of the project templates you need to:
From VS select File-> New-> Project
In the Templates select the language you prefer and expand it. For example “Visual C#”.
Select “Infragistics”
Select the Ignite UI Started template. There are options for the different MVC versions you have installed and an option to choose Razor or Aspx syntax.
I’ve attached a screenshot for your reference.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
So i verified all my css/js files are in the correct location. I added the loader() to my _layout.cshtml file so that it will dynamically load for the whole site but i am still getting undefined function error. Is there a better way to be setting up the grid or is this an issue with 2014.1?
Do you guys have a Nuget package for licensed copies? I only ask because having a nuget we could install would eliminate some of the issues of having to make sure we have everything manually installed and that it would put things in the proper locations from install.
Still throwing the error. I am also using a local copy verse the cdn but i am not sure if that has any play on it either. In my layout i call the loader.js, i did see that you call @(Html.Infragistics.loader()) is that also needed? If so i will have to get that added to the page also will have to make sure all the css needed is added to the project.