I have an ASP.NET MVC Project and I'm trying to add Data Grid from this sample
https://www.igniteui.com/grid/aspnet-mvc-helper
but I have 2 problems
First one
using IgniteUI.SamplesBrowser.Models.Repositories;using IgniteUI.SamplesBrowser.Application.Data;
I have a red underline on these words ( Repositories - Application ) so I have errors in the Controller
Second one
In the view
<body>
@(Html.Infragistics() .Grid(Model) .ID("grid") .Width("100%") .Height("500px") .PrimaryKey("ID") .AutoGenerateColumns(false) .AutoGenerateLayouts(false) .Columns(column =>.........
....
</body>
I installed Infragistics.Web.Mvc form NuGet Package Manager but I have a red underline on this word ( Infragistics )
Can you solve this problems or give me any working sample?
Thanks
Hello Sameh,
After investigating this further, I determined that the Infragistics.Web.Mvc should be included in the project by adding a reference and selecting Infragistics.Web.Mvc dll from the Infragistics folder:
~\Infragistics\2020.1\Ignite UI for MVC\MVC5\Bin\Infragistics.Web.Mvc.dll
Furthermore the following line should be added at the begging of the Index.cshtml page
@using Infragistics.Web.Mvc
These lines:
using IgniteUI.SamplesBrowser.Models.Repositories; using IgniteUI.SamplesBrowser.Application.Data;
Are throwing errors because they are referencing files in the project, used for this sample and are missing in the current project. These files are related to the data of the application and the ones for the current data should be referenced instead.
Below I am attaching a sample, demonstrating remote Filtering, Sorting and Paging, which are applied automatically and the controller contains only the data binding.
Regards,
Monika Kirkova,
Infragistics
GridData.rar
I already installed these packages from NuGet Package Manager
Infragistics.Web.Mvc
IgniteUI
IgniteUI.MVC
Am I missing any packages or references ?
I've had to download the Infragistics packages and then reference them properly. I would say check for where the repo is stored and make sure your references are hitting it accurately.