Downloaded IGNITEUI and created a starter web application (IgniteUI MVC5) in VS 2013 Web.
The project doesn't run and gives a null exception when running the following code
@(Html.Infragistics().Combo("combo", Model.Customers.AsQueryable()) .ValueKey("ID") .TextKey("Name") .DataBind() .Render() )
Removing this code enables the project to run
Stack Trace for the error:
at Infragistics.Web.Mvc.InfragisticsSuite`1.InternalSetter(String fullName, String name, Object value, IEnumerable dataSource, Nullable`1 multiSelection, String nullTextLabel, String customText, IDictionary`2 htmlAttributes, ComboModel model, ModelMetadata metadata) at Infragistics.Web.Mvc.InfragisticsSuite`1.Combo(String id, IEnumerable dataSource) at ASP._Page_Views_Home_Index_cshtml.Execute() in c:\Development\Web\Services\WebApi\Test2_ApiService\SnowResort_Rss\SnowSco_IG\SnowSco_IG\Views\Home\Index.cshtml:line 68 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
Please advise. Thanks
if you remove the string ID and the datasource then the combo loads fine. Using just a string id ("combo", "" or otherwise) throws the same error.....
Please advise??
The following works so I suggest there is a problem with your code
@(Html.Infragistics().Combo() .ValueKey("ID") .TextKey("Name") .DataSource(Model.Customers.AsQueryable()) .ID("combo") .DataBind() .Render() )
Hi, Senthil.
You can download the latest service release and the error in the igCombo should disappear. I will wait for your feedback.
Best regards,
Nikolay Alipiev
All this will be fixed with the next Service Release, coming next week. Sorry for the inconvenience and thanks again for using our product.
I just downloaded the 30 days trial version last night. I can confirm it's not just an issue with MVC5 templates, it's issue with all (Razor) MVC3, MVC4, MVC5 in both Visual Studio 2012 and 2013. I got the same object reference error.
Line 78: Line 79: <h2>Combo</h2> Line 80: @(Html.Infragistics().Combo("combo", Model.Customers.AsQueryable()) Line 81: .ValueKey("ID") Line 82: .TextKey("Name")
Original code that threw the error
<h2>Combo</h2> @(Html.Infragistics().Combo("combo", Model.Customers.AsQueryable()) .ValueKey("ID") .TextKey("Name") .DataBind() .Render() )
The code that worked.
I'm just getting started with infragistics.
Thanks for the other post showing the working code.
Hello SOCA1234.
I wanted to inform you that this issue is fixed and is going to be part of the next Service Release in next month.
Thank you for the patience and for using our product.
Hello SOCA1234,
Thank you for contacting Infragistics Developer Support.
I’ve looked into this and it seems that this is an issue with the MVC5 template and is reproducible with the latest Service release.
I’ve logged this as a development issue with number : 168472.
I’ve also opened a private case with number: CAS-133793-P6J0M5 so that you may track it’s progress.
You can view the status of the development issue connected to that case by selecting the "Development Issues" tab when viewing this case on the web site.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support