This question is locked. New answers and comments are not allowed.
I'm working on my first implementation of your Grid control and I have everything working correctly except for the Insert command. I'm working from your demo example. My View is
When I press the Add New Row button, it calls the Index function in the controller -
I then get the following error message -
Server Error in '/' Application.
Exception Details: System.NotImplementedException: The method or operation is not implemented.
Source Error:
Source File: c:\Users\Tom\Documents\Visual Studio 2010\Projects\CdDemo\CdDemo\Views\Drivers\Index.cshtml Line: 9
Stack Trace:
Everything I'm doing seems consistent with your examples. Can you suggestion what I'm doing in error.
@model IQueryable<CdDemo.Models.Driver>@{ ViewBag.Title = "List of Drivers";}<h2>Index</h2><div style="width: 500px">@(Html.Telerik().Grid(Model) .Name("Grid") .ToolBar(commands => commands.Insert()) .DataKeys(keys => keys.Add(c => c.DriverId)) .DataBinding(dataBinding => dataBinding.Server() .Select("Index", "Drivers") .Insert("Insert", "Drivers") .Update("Save", "Drivers") .Delete("Delete", "Drivers")) .Columns(columns => { columns.Bound(o => o.DriverName).Width(100); columns.Bound(o => o.DriverActive).Width(50); columns.Command(commands => { commands.Edit(); commands.Delete(); }); }) .Editable(editing => editing.Mode(GridEditMode.PopUp)) .Sortable() .Pageable() .Filterable())</div>When I press the Add New Row button, it calls the Index function in the controller -
public ActionResult Index(){ IEnumerable<Driver> list = RepositoryContainer.DriverRepository.AllList(); return View(list);}I then get the following error message -
Server Error in '/' Application.
The method or operation is not implemented.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NotImplementedException: The method or operation is not implemented.
Source Error:
|
Source File: c:\Users\Tom\Documents\Visual Studio 2010\Projects\CdDemo\CdDemo\Views\Drivers\Index.cshtml Line: 9
Stack Trace:
|
Everything I'm doing seems consistent with your examples. Can you suggestion what I'm doing in error.