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

Possible Bug in grid

1 Answer 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nate
Top achievements
Rank 1
Nate asked on 06 May 2011, 06:52 PM
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/

.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();

 

 

}

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 09 May 2011, 06:33 AM
Hello nate,

 This is by design. The grid uses a query string argument to determine that it is in edit mode. You can see this in our online demo.

All the best,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Nate
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or