or
Hi,
I am using kendo dropdown for updating Status in my database, but when i open my popup page I dont get the default value from the database in my dropdown,
here is the dropdown I am using
@(Html.Kendo().DropDownListFor(model => model.Status)
.Name(
"Status")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(
new List<SelectListItem>() {
new SelectListItem() {
Text =
"Active",
Value =
"true"
},
new SelectListItem() {
Text =
"InActive",
Value =
"false"
}
}
)
)
@(Html.Kendo().Grid(Model) .Name("GridField") .Columns(columns => { columns.Bound(item => item.SalonID); columns.Bound(item => item.Avtnr); columns.Bound(item => item.SalonName); columns.Bound(item => item.Street); columns.Bound(item => item.ZipCode); columns.Bound(item => item.City); columns.Bound(item => item.Telephone); columns.Bound(item => item.SalonEmail); columns.Bound(item => item.Description); columns.Bound(item => item.ContactPerson); }) .ColumnMenu() .Groupable() .Pageable() .Sortable() .Resizable(resize => resize.Columns(true)) .Selectable(selectable => selectable.Mode(GridSelectionMode.Single)) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("Read", "Salon")) .ServerOperation(false) ) .Events(events => events.Change("grid_selected")))$("#FilterShowAll").click( function() { var grid = $("#GridField").data('kendoGrid') grid.dataSource.filter({});grid.pagable(false); // Error here...});