This question is locked. New answers and comments are not allowed.
Ok... new problem :)
I have a grid that works fine until I enable filtering (sorting and so on work fine) - then it has problems. Here is the code in the view...
The controller is as follows, where "Roster" is the initial action. The WebPlayerListView obkject has "Players" as a IEnumerable<PlayerView>.
When I run the page, if I attempt to filter I get the following error in Firebug...
Any guidance would be incredibly helpful.
Ken
I have a grid that works fine until I enable filtering (sorting and so on work fine) - then it has problems. Here is the code in the view...
| <%= Html.Telerik().Grid(Model.Players) |
| .Name("Roster") |
| .Columns(columns => |
| { |
| columns.Add(o => o.FirstName).Width(120); |
| columns.Add(o => o.LastName).Width(120); |
| columns.Add(o => o.Position).Width(50); |
| columns.Add(o => o.Height).Width(120); |
| columns.Add(o => o.Weight).Width(120); |
| }) |
| .Ajax(ajax => ajax.Action("_RosterAjaxBinding", "Players")) |
| .Pageable() |
| .Sortable() |
| .Filterable() |
| %> |
| </asp:Content> |
The controller is as follows, where "Roster" is the initial action. The WebPlayerListView obkject has "Players" as a IEnumerable<PlayerView>.
| [GridAction] |
| public ActionResult _RosterAjaxBinding() |
| { |
| WebPlayerListView rawview = webPlayerViewFactory.CreateWebPlayerListView(0, 50000); |
| var gridview = new GridModel<PlayerView>(); |
| gridview.Data = rawview.Players; |
| return View(gridview); |
| } |
| public ActionResult Roster() |
| { |
| WebPlayerListView theview = webPlayerViewFactory.CreateWebPlayerListView(0, 50000); |
| return View(theview); |
| } |
When I run the page, if I attempt to filter I get the following error in Firebug...
| e(h.string()).appendTo(this.element).find(".t-datepicker").tDatePicker is not a function |
| http://localhost:38574/Scripts/2010.1.218/telerik.grid.filtering.min.js |
| Line 1 |
Any guidance would be incredibly helpful.
Ken