This question is locked. New answers and comments are not allowed.
I have a grid that allows the insertion and removal of records - the existing records should not be edited.
I have added the Delete command, the Insert toolbar, and the Insert and Delete databindings.
When I click "Add new record", I am able to enter data, but the Insert button is missing. Only when I add the Edit command and Edit databinding does the Insert button appear.
Is this by design or am I missing a nuance here?
I have added the Delete command, the Insert toolbar, and the Insert and Delete databindings.
When I click "Add new record", I am able to enter data, but the Insert button is missing. Only when I add the Edit command and Edit databinding does the Insert button appear.
Is this by design or am I missing a nuance here?
@(Html.Telerik().Grid(Model).Name("Grid").DataKeys(keys => keys.Add(o => o.DiscountId)).DataBinding(binding => binding.Ajax() .Select("_BindDiscounts", "Part", new { id = Model.CategoryId }) .Insert("_DiscountAdd", "Part", new { id = Model.CategoryId }) .Delete("_DiscountDelete", "Part")).Columns(columns =>{ columns.Bound(o => o.EffectiveDate).Title("Effective Date").Format("{0:d}").EditorTemplateName("EffectiveDate"); columns.Bound(o => o.DiscountPercent).Title("Discount %"); columns.Command(commands => { commands.Delete(); });}).ToolBar(toolbar => { toolbar.Insert(); }).Sortable(sorting => sorting .SortMode(GridSortMode.MultipleColumn) .OrderBy(sortOrder => sortOrder.Add(o => o.EffectiveDate).Descending()) ).Groupable(grouping => grouping .Enabled(true) ).Scrollable(scrolling => scrolling.Enabled(true)).Pageable(paging => paging.PageSize(30) .Style(GridPagerStyles.NextPreviousAndNumeric) .Position(GridPagerPosition.Bottom) ))