Hello,
we want to add editable fields in the template part of a grid.
Our grid looks sth. like this:
@(
Html.Kendo().Grid(Model.TABLE)
.Columns(columns =>
{
columns.Bound(c => c.PRIO);
columns.Bound(c => c.COMMENT);
})
.DataSource(dataSource => dataSource
.Ajax()
...
.Model(m =>
{
m.Id(p => p.ID);
})
)
.ClientDetailTemplateId("template")
.Editable(e => e.Mode(GridEditMode.InCell))
)
The template does look sth. like this:
<script id="template" type="text/x-kendo-template">
<div class="col-md-6">
<p><strong>Beschreibung:</strong></p>
<p>#: stm_bez1 #</p>
<p>#: stm_bez2 #</p>
<p>#: stm_bez3 #</p>
<p>#: stm_bez4 #</p>
<p>#: stm_bez5 #</p>
<p>#: stm_bez6 #</p>
<p>#: rsc_text1 #</p>
<p>#: rsc_text2 #</p>
<p>#: rsc_text3 #</p>
<p>#: rsc_text4 #</p>
<p>#: rsc_text5 #</p>
<p>#: rsc_text6 #</p>
</div>
@*
HOW WOULD WE IMPLEMENT THE EDITABLE FIELDS HERE?
*@
</script>
How would we go about putting these fields in the template part, and have them editable and propagate to the server on save?: