This is a migrated thread and some comments may be shown as answers.

ActionResults in grdi not being executed

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 29 Apr 2013, 03:11 PM
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();
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Robert
Top achievements
Rank 1
answered on 30 Apr 2013, 11:40 AM
Cant have 'controller' as part of the name of the controller on the action method
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Share this question
or