I'm trying to assemble a working example of the following example on Ignite UI:
http://www.igniteui.com/tree/aspnet-mvc-helper
The libraries that are missing:
using IgniteUI.SamplesBrowser.Models.Northwind;using IgniteUI.SamplesBrowser.Models.Repositories;
So, is the example configurable to use on any station? Is there test data generated from within the libraries?
Please advise and help get a working example running.
Thanks,
-Mark
Hello Mark,
Thank you for posting in our forum.
The IgniteUI.SamplesBrowser.Models.Northwind namespace and its content are actually under the ASP.Net Model tab under the Code View of the sample.
IgniteUI.SamplesBrowser.Models.Repositories is an external class that is used to get the data.You can change the lines where that class is used with any method that returns IEnumerable data of the same type (Category).
For details and examples on how to implement a basic igTree in a Asp.Net MVC application you can refer to:
http://help.infragistics.com/doc/jQuery/2014.1/CLR4.0/?page=igTree_Getting_Started.html
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
I'm still having a lot of difficulty getting the data model to show up as the data source. There's either an error with the page or an empty model returned. Please help with an example with ready connected data.
I’ve attached a sample that demonstrates binding the igTree via the model to an IQueryable collection.
Please refer to the attached sample and let me know if you have any questions.
Note that I’ve excluded the Infragistics.Web.Mvc dll from the project in order to lower the file size and in order to run the sample you would need to add a reference to that assembly.
I think I've resolved these issues now. Here are some of the steps:
Multiple errors showed up until all references were restored. I downloaded any missing libraries or required versions through NuGet.
Once those were aligned, I received a 500.23 IIS error. Something was wrong with the web.config file and/or the IIS server. The error pointed to the AppPool and required Integrated mode, so this was corrected.
Searching multiple blogs, I found the following config tag to add to web.config.
<system.webServer> <validation validateIntegratedModeConfiguration="false"/> </system.webServer>
Once that was in place, multiple version mismatches showed when the site compiled. I modified the web.config for assemblies to match their versions but still received errors. Searching on the term lead to finding the View level web.config with the same version configuration mismatches.
I hope this is helpful.
-Thank you, IG Team.
Hello Big_Lebowski,
Thank you for your feedback.
If we can provide further assistance, please let use know.
Sincerely,
Tsanna