@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@*format Grid in javascript file *@
<script src="~/js/jsDemo.js"></script>
<form>
<div style="margin:10px">
grid with multiple date items in cell
</div>
@*-------------< Grid
>-----------------*@
<div id="divGrid" style="width:80%">
@(Html.DevExtreme().DataGrid()
.ID("gridDataTable")
.DataSource(d => d.Mvc().Controller("apiDemo").Key("IDKey")
.LoadAction("getGridData")
.UpdateAction("UpdateGridCell")
)
.Editing(e =>
e.AllowAdding(false)
.AllowDeleting(false)
.AllowUpdating(true)
.Mode(GridEditMode.Cell).UseIcons(true)
)
.CustomizeColumns("demo_customizeColumns") //define
columns format
//.OnEditorPreparing("onEditorPreparing")
.AllowColumnResizing(true)
)
</div>
@*-------------</ Grid
>-----------------*@
@*===========< script >==========*@
<script>
DevExpress.localization.locale("de");
</script>
@*===========</ script
>==========*@
</form>
|