This question is locked. New answers and comments are not allowed.
Is there a way to do CRUD using the ToolBar of the Grid?
My code:
The attached grid.
My code:
<%= Html.Telerik().Grid(Model) .Name("LinksGrid") .ToolBar(commands => { commands.Insert().ButtonType(GridButtonType.Text); commands.Custom().Action("Editar", "Links").Text("Edit"); commands.Custom().Action("Deletar", "Links").Text("Delete"); }) .DataKeys(keys => { keys.Add(p => p.Id); }) .DataBinding(dataBinding => dataBinding .Ajax() .Select("Listar", "Links") .Insert("Adicionar", "Links") .Update("Editar", "Links") .Delete("Deletar", "Links") ) .Columns(columns => { columns.Bound(o => o.Id); columns.Bound(o => o.Nome); columns.Bound(o => o.Endereco).Title("Endereço"); columns.Bound(o => o.Descricao).Title("Descrição"); columns.Bound(o => o.Ativo); }) .Pageable() .Scrollable() .Sortable() .Pageable() .Selectable() %>The attached grid.