<div class="control-section">
<ejs-grid id="Grid" dataSource="ViewBag.dataSource" actionBegin="actionBegin" actionComplete="actionComplete" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" allowPaging="true">
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog" template='#dialogtemplate'></e-grid-editSettings>
<e-grid-pagesettings pageCount="5 "></e-grid-pagesettings>
<e-grid-columns>
. . .
</e-grid-columns>
</ejs-grid>
</div>
<script id='dialogtemplate' type="text/x-template">
<div id="dialogTemp">
</div>
</script>
<script>
function actionBegin(args) {
if (args.requestType === 'save') {
args.data['ShipAddress'] = args.form.querySelector("#ShipAddress-value").value;
}
}
</script> |
<div>
. . .
<div class="form-row">
<div class="form-group col-md-12">
<div class="e-float-input e-control-wrapper">
<ejs-richtexteditor id="ShipAddress" value=@Model.ShipAddress ejs-for="ShipAddress" placeholder="Popis vozu">
</ejs-richtexteditor>
</div>
</div>
</div>
</div>
<ejs-scripts></ejs-scripts> |