Created
August 21, 2014 19:29
-
-
Save dearcodes/95d1d51a3638b867d09b to your computer and use it in GitHub Desktop.
Grid con operaciones serverside
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model IEnumerable<Inka.Models.Entities.###MODELO###> | |
@{ | |
Layout = "~/Features/Shared/_Layout.cshtml"; | |
} | |
@(Html.Kendo().Grid(Model) | |
.Name("Grid") | |
.Columns(columns => | |
{ | |
columns.Bound(p => p.Tipo_trn).Groupable(false); | |
columns.Bound(p => p.Nro_secuencia); | |
columns.Bound(p => p.Descripcion); | |
columns.Bound(p => p.AlmIn); | |
columns.Bound(p => p.AlmOut); | |
columns.Bound(p => p.Fec_mov); | |
columns.Bound(p => p.Flg_status); | |
columns.Bound(p => p.Mov_observ); | |
columns.Bound(p => p.Nro_SecUbic); | |
columns.Bound(p => p.Flg_Urg); | |
}) | |
.Pageable() | |
.Selectable(selectable => selectable | |
.Mode(GridSelectionMode.Single) | |
.Type(GridSelectionType.Row)) | |
.DataSource(datasource => datasource.Server().Model(model => model.Id(p => p.idUnico))) | |
.Sortable() | |
.Scrollable() | |
.Filterable() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Controller
public ActionResult Index ()
{
var otrosMovObj = BLOtrosMov.ObjectInstance();
return View(otrosMovObj.getAll());
}