Inserire i dati della postazione |
Codice * |
Livello * |
Categoria * |
Titolo * |
Codice * |
Descrizione Breve * |
Descrizione * |
@Html.EJ().Button("saveBtn").Type(ButtonType.Button).Size(ButtonSize.Medium).Height("30").Width("100").Text("Salva").ClientSideEvents(s => s.Click("maplocationformsubmit")) |
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource(ds => ds.Json((IEnumerable<object>)ViewBag.dataSource).UpdateURL("CellEditUpdate").InsertURL("CellEditInsert").RemoveURL("CellEditDelete").Adaptor(AdaptorType.RemoteSaveAdaptor))
.AllowPaging()
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Dialog); })
-------------------
.Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Add();
col.Field("CustomerID").HeaderText("Customer ID").Add();
col.Field("EmployeeID").HeaderText("Employee ID").ValidationRules(v => v.AddRule("number", true).AddRule("range", "[0,23.59]")).Add();
col.Field("Freight").HeaderText("Freight").Add();
})
) |