This question is locked. New answers and comments are not allowed.
Dear Sirs,
Is it possible (like in your example) .Columns(columns => columns
{
columns.Command(commands =>
commands
.Custom("viewDetails")
.Text("Customer Details")
.DataRouteValues(route => route.Add(o => o.OrderID)
.RouteKey("orderID"))
.Ajax(true)
.Action("ViewDetails", "Grid")
));
}
)
in the same column (dependign on cell value) to have different commands
(with different text, icons and images).
Exactly what I want is to make column with buttons, depending on value
in Column 1 (IsLockedOut)
when cell value == true, i need a custom command with custom HTML format
.Text("Ubnlock")
.Action("UnblockUser", "Users")
when cell value == false, i need a custom command with custom HTML format
.Text("Bnlock")
.Action("BblockUser", "Users")
Please advise is it possibe and how coud I make grid this way?
Thank you in advance.