Skip to content

Instantly share code, notes, and snippets.

@dearcodes
Created August 21, 2014 19:29
Show Gist options
  • Save dearcodes/95d1d51a3638b867d09b to your computer and use it in GitHub Desktop.
Save dearcodes/95d1d51a3638b867d09b to your computer and use it in GitHub Desktop.
Grid con operaciones serverside
@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()
)
@dearcodes
Copy link
Author

Controller

public ActionResult Index ()
{
var otrosMovObj = BLOtrosMov.ObjectInstance();
return View(otrosMovObj.getAll());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment