This question is locked. New answers and comments are not allowed.
We are using Telerik MVC Grid. We want Ajax Paging and Sorting however we want our Search Screen to perform search and populate the grid.
we are using Passing parameters to telerik asp.net mvc grid to perform search. However here is the problem:
Can we have overloaded action method? In all cases I can either fire _Index() or _Index(string submittedby). but can't pick up selectively.
we are using Passing parameters to telerik asp.net mvc grid to perform search. However here is the problem:
Can we have overloaded action method? In all cases I can either fire _Index() or _Index(string submittedby). but can't pick up selectively.
[GridAction] public ActionResult _Index() { var records = Repository.GetQueue(); return View(new GridModel(records)); } [GridAction] public ActionResult _Index(string submittedby) { var records = Repository.GetQueue(); if (!string.IsNullOrEmpty(submittedby)) { records = records.Where(x => x.RequestorName.Contains(submittedby)); } var gridModel = new GridModel<ViewModel> { Data = results, }; return View(gridModel); }