feffernoogan
New Coder
Hello, I have recently completed this online tutorial: Get started with ASP.NET Core MVC https://learn.microsoft.com/en-us/a...rt-mvc?view=aspnetcore-6.0&tabs=visual-studio
Additionally, I have converted the UI into a Kendo UI grid using jQuery. I am trying to add some additional features such as inline editing. I have updated my code to reflect the 'transpose' criteria - read, update, create, and destroy. However, I am having difficulty writing the code needed for 'update' method of the controller (to start). Any help is much appreciated.
This URL contains what I am trying to achieve - https://demos.telerik.com/kendo-ui/grid/editing-inline
This is what I have so far (this code also includes Movies_Read method - I need assistance with the Movies_Update method):
Additionally, I have converted the UI into a Kendo UI grid using jQuery. I am trying to add some additional features such as inline editing. I have updated my code to reflect the 'transpose' criteria - read, update, create, and destroy. However, I am having difficulty writing the code needed for 'update' method of the controller (to start). Any help is much appreciated.
This URL contains what I am trying to achieve - https://demos.telerik.com/kendo-ui/grid/editing-inline
This is what I have so far (this code also includes Movies_Read method - I need assistance with the Movies_Update method):
C#:
public async Task<IActionResult> Movies_Read(DataSourceRequest request)
{
var movies = _context.Movie.ToList();
DataSourceResult result = new DataSourceResult();
result.Data = movies.AsQueryable();
result.Total = movies.Count;
return Json(new
{
data = result,
});
}
// POST: Movies_Update
[HttpPost] // All the methods that create, edit, delete, or otherwise modify data do so in the[HttpPost] overload of the method
public async Task<IActionResult> Movies_Update([DataSourceRequest] DataSourceRequest request, Movie movie)
{
}