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
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() )
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??