how to assign value directly to kendo data-bind
here is the code
<script type="text/x-kendo-template" id="add-new-user-template">
<li>
<a class="user-result">
<span class="row-name">Create New User</span>
<br/>
<input type="hidden" class="hf-user-role-id" data-bind="value: 0"/>
<input type="hidden" class="row-party-id" data-bind="value: "/>
</a>
</li>
</script>
hav to set first input field value to 0 and second to empty string
Ok, I don’t really know if I understood what you try to achieve, but if you want to set
staticvalues, why not just doing<input type="hidden" name="user-id" value="0" class="hf-user-role-id" />since there is (in my opinion) no sense ofbindingstatic values.The
data-bindattribute needs a variable or some JSON to be bound to not a static value.Cheers