This question is locked. New answers and comments are not allowed.
I have the following databinding. The actual URL generated or assigned for my Edit button and Select button is : /Home/Selection/
Why does the action for my select button get assigned to my edit button also. They both have /Home/Selection for the Action/Controller
My Delete button has the correct action. /Home/Delete/
I have the following ACTION
Why does the action for my select button get assigned to my edit button also. They both have /Home/Selection for the Action/Controller
My Delete button has the correct action. /Home/Delete/
.DataBinding(dataBinding => dataBinding.Server().Select(
"Selection", "Home")
.Insert(
"Insert", "Home")
.Update(
"Update", "Home")
.Delete(
"Delete", "Home")
)
I have the following ACTION
[
AcceptVerbs(HttpVerbs.Post)]
[
GridAction]
public ActionResult Selection(long id)
{
ProjectViewModel objMyViewModel = new MyViewModel();
objMyViewModel.MyHierarchy = Repository.GetProjects(id);
ViewData[
"id"] = id;
return View(objProjectViewModel);
}
[
HttpPost]
[
GridAction]
public ActionResult Delete(string id)
{
return View();
}