I am using Infragistics.Web.Mvc version 3.11.2.1023. I have a grid using simple filtering. Here is how I am initializing my grid:
public static void InitializeGridOptions(GridModel model, List<GridColumn> columns) { foreach (var column in columns) model.Columns.Add(column); model.Width = "100%"; model.Height = "700"; var filtering = new GridFiltering() { Mode = FilterMode.Simple, Type = OpType.Remote, FilterDelay = 1500 }; model.Features.Add(filtering); var sort = new GridSorting() { Mode = SortingMode.Multiple, Type = OpType.Remote }; model.Features.Add(sort); var paging = new GridPaging() { PageSize = 30, Type = OpType.Remote, PageSizeList = { 5, 10, 15, 20, 30, 40, 50 } }; model.Features.Add(paging); var selection = new GridSelection() { Mode = SelectionMode.Row, MultipleSelection = true }; model.Features.Add(selection); var resizing = new GridResizing() { AllowDoubleClickToResize = true }; model.Features.Add(resizing); }
In the filter box underneath the heading of any columns, if I type a comma, the grid crashes on the GetData function with the following error on the gridmodel.GetData function:
StartIndex cannot be less than zero. Parameter name: startIndex
Stack trace:
at System.String.Remove(Int32 startIndex, Int32 count) at Infragistics.Web.Mvc.GridFiltering.ReplaceLast(String s, String f, String r) at Infragistics.Web.Mvc.GridFiltering.TransformDataSource(NameValueCollection queryString, IGridModel grid, IQueryable& queryable) at Infragistics.Web.Mvc.GridModel.DataBindInternal() at Infragistics.Web.Mvc.GridModel.DataBind() at Infragistics.Web.Mvc.GridModel.GetData() at ICMDB.Controllers.DeviceModelController.GetData() in C:\Users\DNatoli\Documents\Visual Studio 2010\Projects\ICMDB\ICMDB\Controllers\DeviceModelController.cs:line 51 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
I am having the same problem with version 12.1. Is there a solution for this now?
Hello Danenatoli,
I have created a case on your behalf, the case number is CAS-79136-XF825L I will continue our communication thru this ticket.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hello danenatoli,
I am investigating this issue. I will update you as soon as I have any progress.