This question is locked. New answers and comments are not allowed.
Hello!
If a Grid is rendered via RenderAction with additional RouteValues additional gibberish is added to the URL for the grid actions.
Example:
Index.cshtml
Task/Grid
Grid.cshtml
URL after clicking on Edit:
http://localhost/ALI/Task/All/1?Test=Test&bd5d2b76-cd5d-4a68-8e7c-51a6f9fc2a6f=System.Web.Mvc.DictionaryValueProvider`1%5BSystem.Object%5D&tasks-mode=edit
Wait, what? Where did that ValueProvider-stuff come from?
I have honestly no idea and the only way to fix this is to remove the additional RouteValues from the RenderAction call, which in my case is NOT an option.
If a Grid is rendered via RenderAction with additional RouteValues additional gibberish is added to the URL for the grid actions.
Example:
Index.cshtml
@{ Html.RenderAction("Grid", "Task", new { Test = "Test" }); }
Task/Grid
[ChildActionOnly] public ActionResult Grid() { return View("Grid", GetGridViewModel(TaskGridSelectMode.All)); }
Grid.cshtml
@model TaskGridViewModel @{ Layout = null; } @(Html.Telerik().Grid(Model.Data).Name("tasks") (additional yadda yadday omitted)
URL after clicking on Edit:
http://localhost/ALI/Task/All/1?Test=Test&bd5d2b76-cd5d-4a68-8e7c-51a6f9fc2a6f=System.Web.Mvc.DictionaryValueProvider`1%5BSystem.Object%5D&tasks-mode=edit
Wait, what? Where did that ValueProvider-stuff come from?
I have honestly no idea and the only way to fix this is to remove the additional RouteValues from the RenderAction call, which in my case is NOT an option.