Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Combo in Starter Web Application
posted

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

Parents Reply Children