This question is locked. New answers and comments are not allowed.
Greetings,
I have two commands, Edit and Select on a grid. If clicking at either one, how does the binding method know which command has been clicked?
.Columns(c =>
{
c.Command(action =>
{
action.Edit();
action.Select();
}
}
.DataBinding(binding => binding.Server()
.Update("GridUpdate", "Home")
.Select("GridEdit", "Home")
)
Both Edit and Select command are bound to the same method.
public ActionResult GridEdit(int id)
{
// if Edit is clicked, perform inline edit
// if Select is clicked, perform detailed edit in another view
}
Could anyone help?
Thanks,
Sam
I have two commands, Edit and Select on a grid. If clicking at either one, how does the binding method know which command has been clicked?
.Columns(c =>
{
c.Command(action =>
{
action.Edit();
action.Select();
}
}
.DataBinding(binding => binding.Server()
.Update("GridUpdate", "Home")
.Select("GridEdit", "Home")
)
Both Edit and Select command are bound to the same method.
public ActionResult GridEdit(int id)
{
// if Edit is clicked, perform inline edit
// if Select is clicked, perform detailed edit in another view
}
Could anyone help?
Thanks,
Sam