Hi
I have a custom editable template and i would like to the owner to default owner, no selection. I have below code in the custom template but the value is not posted back to server during ajax call. can someone advice ?
<div data-container-for="OwnerName" class="k-edit-field" id="owner">
<input type="text" class="k-input k-textbox" name="ownername" id="ownername" data-bind="value:OwnerName" disabled>
<input type="hidden" name="ownerId" data-bind="value:OwnerID" id="ownerId">
</div>
<script>
$(function () {
if (!$("\\\#title").val()) {
var viewModel = kendo.observable({
OwnerName: "Tester",
ownerId: "TS0001"
});
kendo.bind($("\\\#owner"), viewModel);
}
});
</script>