Hello,
I have a KendoGrid with a detaiTemplate:
detailTemplate: kendo.template($("#template").html()),
And the Temmplate:
<script type="text/x-kendo-template" id="template">
<br>
<div class="tabstrip">
<ul>
<li class="k-state-active">
Verteiler
</li>
<li>
Verteiler hinzufügen
</li>
<li>
Dokumente
</li>
</ul>
<div>
<h4>Verteiler</h4>
</div>
<div>
<h4>Verteiler hinzufügen</h4>
</div>
<div>
<!-- Upload -->
<!-- Div mit der ID des Projektes, damit die Datei zugeordnet werden kann -->
<div style="display:none;" id="id">#=id#</div>
Neu hochladen: <input name="files" id="files" type="file" />
<hr> Vorhandene Elemente:
<div id="alreadyDocs"><b>noch keine Elemente vorhanden</b>
</div>
</div>
</div>
<br>
</script>
with the following Javascript:
function detailInit(e) {
var detailRow = e.detailRow;
detailRow.find(".tabstrip").kendoTabStrip({
animation: {
open: {
effects: "fadeIn"
}
}
});
//Die Id des Projektes ist in dem Template in dem div mit der id "id" gespeichert
var id = detailRow.find("#id").html();
/* Uploader Widget erstellen*/
detailRow.find("#files").kendoUpload({
async: {
saveUrl: "save.php?parentID=" + id,
autoUpload: true
},
success: onSuccess
});
}
In the Subgrid Tab "Dokumente" will be all Documents, which were already uploaded to the master-Line.
And I want, that after uploading (onSuccess), the Subgrid refreshes.
How to do that?