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
1175
[BUG] igGridSummaries MVC Helper (Stack Trace)
posted

v17.2.20172.70

MVC Helper v4.17.2.183

1.  Create an igGrid with the Summary feature using MVC Helpers.

@(Html.Infragistics().Grid<EntryModel>()
        .ID("grid")
        .Columns(column =>
        {
        })
        .Features(feature =>
        {
            feature.Summaries();
        })
        .DataSource((new List<object> { new { ID = 1 }, new { ID = 2 } }).AsQueryable())
        .DataBind()
        .Render()
)


2.  Verify that the page works.
3.  Add this querystring without a value to the URL:     ?r

[NullReferenceException: Object reference not set to an instance of an object.]
   Infragistics.Web.Mvc.GridSummaries.TransformDataSource(NameValueCollection queryString, IGridModel grid, IQueryable& queryable) +350
   Infragistics.Web.Mvc.GridModel.TransformDatasource(NameValueCollection queryString, IQueryable queryable) +166
   Infragistics.Web.Mvc.GridModel.DataBindInternal() +1031
   Infragistics.Web.Mvc.GridModel.DataBind() +35
   Infragistics.Web.Mvc.BaseGridWrapper`2.DataBind() +14
   ASP._Page_Views_Entry_Index_cshtml.Execute() in d:\Ops\Apps\ProfitSharing2\HAJOCA-2018\ProfitSharing\Views\Entry\Index.cshtml:106
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +104
   System.Web.WebPages.StartPage.RunPage() +17
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +64
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +255
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +176
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +75
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +99
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9873649
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159
  • 275
    Offline posted

    Hello Karthik,

    I was able to reproduce the issue you are having and it indeed seems to be related to the Summary feature using the Ignite UI MVC Helpers and passing empty query strings.
    I have created a case for you. I have assigned it to you and I have created an issue in our internal tracking system with a Development ID of 266456. The issue is linked to the case so you can keep track of it.


    You can view you active cases at any time in you account page under Support Activity. Meanwhile if you have any other related questions let me know.

    Regards,
    Svetoslav