ActionResults in grdi not being executed

2 posts, 1 answers
  1. Robert
    Robert avatar
    9 posts
    Member since:
    Jan 2013

    Posted 29 Apr 2013 Link to this post

    Hi. New to MVC and trying to implement my first kendo control using the example provide by Kendo, I can get data loaded in the razor view and kendo grid, but if I try to update, edit, or delete it does not execute the code, I get no exception thrown.. 

    What am i missing that these functions dont execute?

    Here is the code for view and controller:

    .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(20)
            .Events(events => events.Error("error_handler"))
            .Model(model => model.Id(p => p.ID))
            .Create(update => update.Action("EditingPopup_Create", "SysAdminController"))
            .Read(read => read.Action("EditingPopup_Read", "SysAdminController"))
            .Update(update => update.Action("EditingPopup_Update", "SysAdminController"))
            .Destroy(update => update.Action("EditingPopup_Destroy", "SysAdminController"))

    public ActionResult EditingPopup_Read([DataSourceRequest] DataSourceRequest request)
    {
        throw new NotImplementedException();
    }
     
    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult EditingPopup_Create([DataSourceRequest] DataSourceRequest request, MenuTabViewViewModel menuTabViewViewModel)
    {
        throw new NotImplementedException();
    }
     
    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult EditingPopup_Update([DataSourceRequest] DataSourceRequest request, MenuTabViewViewModel product)
    {
        throw new NotImplementedException();
    }
     
    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult EditingPopup_Destroy([DataSourceRequest] DataSourceRequest request, MenuTabViewViewModel product)
    {
        throw new NotImplementedException();
    }
  2. Answer
    Robert
    Robert avatar
    9 posts
    Member since:
    Jan 2013

    Posted 30 Apr 2013 Link to this post

    Cant have 'controller' as part of the name of the controller on the action method
Back to Top