I have this:
[code]
@using Multitask.Regenboog.Medicijnverstrekking.WebApplication.ViewModels.Medicijn
@{
ViewBag.Title = "Volgorde";
}
@section Head
{
@Styles.Render("~/content/kendo/style")
@Styles.Render("~/content/toastr")
}
Medicijnen
@(Html.Kendo().Grid
.Name("medicijnenGridVolgorde")
.Columns(columns =>
{
columns.Bound(c => c.Id).Hidden().IncludeInMenu(false);
columns.Bound(c => c.Naam).Title("Naam").HtmlAttributes(new { @style = "width:400px;" }).Width(100);
columns.Bound(c => c.Volgorde).Title("Volgorde").Width(150);
})
.Sortable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Filterable()
.Reorderable(reorder => reorder.Columns(true))
.ColumnMenu()
.DataSource(datasource => datasource
.Ajax()
.Read(read => read.Action("Volgorde", "Medicijn"))
.Sort(sort => sort.Add(m => m.Naam).Ascending())
.ServerOperation(true)
)
.Resizable(resize => resize.Columns(true))
.Deferred()
)
@Html.ActionLink("Toevoegen", "Create", "Medicijn", null, new { @class = "btn btn-success" })
@(Html.Kendo().Tooltip()
.For("#medicijnenGridVolgorde")
.Filter("th")
.Position(TooltipPosition.Top)
.ContentHandler("GetColumnTitle")
.Deferred()
)
@section scripts
{
@Scripts.Render("~/bundles/Kendo")
@Scripts.Render("~/bundles/toastr")
@Scripts.Render("~/bundles/Q")
@Scripts.Render("~/bundles/knockout")
@Html.Kendo().DeferredScripts()
}
[/code]
But how to drag a row in the kendo grid?
Thank you
Replies
Know the answer? Post it — somebody with the same question will find it here.