or


@( Html.Kendo().Grid<Location>() .Name("selectedLocations") .BindTo((IEnumerable<Location>)ViewBag.Route.SelectedLocations) .Columns(columns => { columns.Bound(p => p.Id).Title("ID"); columns.Bound(p => p.StopLocation).Title("Stop Location"); }) .Selectable(s => s.Mode(GridSelectionMode.Single)) .DataSource(dataSource => dataSource.Server().Model(model => model.Id(p => p.Id))) )$("#addStopBtn").click(function () { var sourceGrid = $('#availableLocations').data('kendoGrid'); var destinationGrid = $('#selectedLocations').data('kendoGrid'); sourceGrid.select().each(function (e) { var dataItem = sourceGrid.dataItem($(this)); destinationGrid.dataSource.add(dataItem); sourceGrid.dataSource.remove(dataItem); }); sourceGrid.refresh(); destinationGrid.refresh(); });