This question is locked. New answers and comments are not allowed.
Hi, I am using the following code to create an editable grid,
I must be missing something as I am unable to get the 'Edit' button to appear in my grid, what am I doing wrong?
<%= Html.Telerik().Grid(Model) |
.Name("Grid") |
.DataKeys(keys => keys.Add(c => c.SubLicenceId)) |
.DataBinding(dataBinding => dataBinding.Ajax() |
.Select("_SelectAjaxEditing", "Grid") |
.Insert("_InsertAjaxEditing", "Grid") |
.Update("_SaveAjaxEditing", "Grid") |
.Delete("_DeleteAjaxEditing", "Grid")) |
.Columns(columns => |
{ |
columns.Bound(c => c.TreatmentShortname).Title("Treatment"); |
columns.Bound(c => c.SubLicenceQuantity).Title("Available"); |
columns.Bound(c => c.SubLicenceQuantityUsed).Title("Used"); |
columns.Bound(c => c.SubLicenceUnlimited).Title("Unlimited"); |
columns.Bound(c => c.IsActive).Title("Active"); |
columns.Command(commands => |
{ |
commands.Edit(); |
commands.Delete(); |
}).Width(180); |
}) |
.Pageable() |
%> |
I must be missing something as I am unable to get the 'Edit' button to appear in my grid, what am I doing wrong?