Hi Progress,
Im currently trying to develop an grid view through your beautifully developed Kendo grid.
The grid is displayed properly with the grid displaying the enum value as i wish. However i have stumbled upon a problem when using the GridEditMode.PopUp.
When pressing Add new Feature the option i can choose is the Enums key, not the value. My wish is to make an dropdown list of these enums for available features an user can choose from. And not the Key.
I will supply my code here.
@(Html.Kendo().Grid<X.Administration.UI.Models.FeaturesGridViewModel>
()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.Id).Hidden();
columns.Bound(p => p.Tag);
})
.ToolBar(toolbar => toolbar.Create().Text("Add new feature"))
.Editable(editable => editable.Mode(GridEditMode.PopUp))
.Pageable()
.Sortable()
.Scrollable()
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Events(events => events.Error("error_handler"))
.Model(model => model.Id(p => p.Id))
.Read(read => read.Action("GetFeaturesByCarId", "Grid", new {id = @Model.Id}))
.Update(update => update.Action("AddFeatureByVehicleId", "Feature", new { id = @Model.Id }))
)
)
Iv'e attached files displaying how it looks now, and what i wish for. My wish is to have an Html.Kendo().DropDownList() in my popup, when adding an entry. However i am not able to create one in my GridEditMode.PopUp.
The result im looking for is similar to that of an Kendo drop down list. However iv'e been unable to locate an example in in the forums for ASP.NET CORE, using an dropdown of all available enums.