Hi, I am having endless issues trying to get a VB.Net VS2013 MVC 5 project (.Net framework 4.5) up and running using Ignite UI controls from Infragistics V 2014.2. I have spent endless hours browsing your support forums and FAQ to try find a simple project which details a straightforward list of the steps needed to add for example the igGrid to a view (in my case a partial view). I am using razor syntax.
I have added a reference to the relevant Infragistics.Web DLLs to the project (CopyLocal=True).
I have modified the web.config file to add the "<add assembly..." entry.
I have added references to the various Infragistics script and style files in my BundleConfig file.
Nothing seems to work.
Do you have a simple example project which I can use as a template?
Hello David,
Thank you for contacting Infragistics Developer Support!
I have attached small project demonstrating how to use our igGrid.
Let me know if you need further assistance.
Thanks Denis - that really helped. I got all my packages inline with your example to make sure my references were the same, cleaned the solution, got the web.config files cleaned up, rebuilt and voila! Appreciate the help!
Unfortunately I spoke too soon, As soon as I try modify the control (to set up columns, etc), errors are shown. Closing the view and then re-opening the view causes the errors to disappear, but they re-appear again as soon as I try edit the view. I have attached an image which shows the view mark-up and one of the errors ('ID' is not a member of System.Web.Mvc.MvcHtmlString)
Any ideas?
I was not able to reproduce the behaviour that you're seeing on your side. I have attached the sample project I used to test this. Please test this project on your side; whether or not it works correctly may help indicate the nature of this issue.
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.Please let me know if I can provide any further assistance.
Hi Denis
At first glance the only difference I can see is that I am using JQuery v2.1.0 whereas your project is using v1.10.2.
Would that be an issue?
David
Server side rendering has nothing to do with scripts references on the client, i.e. if the issue is caused by an error of the jquery version you will see it on the client not in IDE /on the server. Also the sample works with 2.1.0 perfectly fine.
I have uploaded a test project which shows the issue.
Thanks
The IQueryable was the key and resolved all the issues.
Thanks for all your help Denis, much appreciated!
Looking forward for hearing from you.
Thanks Denis,
I have added a readonly property to the Model to expose the grid datasource as IQueryable and the test project is working. I will apply same to main project and report back.
Thank you for the provided sample.
You are setting a model of type TestModel which is not supported by the grid, the igGrid only accepts IQueryable(Of T).
Please refer to the attachment from previous reply for how to provide IQueryable to the grid.
New version attached (this one with bin folder contents deleted)