Hi,
I have a doubt...
it's possible use a methdo to get the value inside an input ... i mean:
instead
where
thanks
I have a doubt...
it's possible use a methdo to get the value inside an input ... i mean:
<script id="ReadOnlyText-template" type="text/x-kendo-template"> ${name}<input type="text" disabled="disabled" data-bind="value:replaceString(value)"></input>
</script>
instead
<script id="ReadOnlyText-template" type="text/x-kendo-template"> ${name}<input type="text" disabled="disabled" data-bind="value:value"></input> </script>
<
script
type
=
"text/javascript"
>
function replaceString(value) {
if(typeof value == 'number' && value !== undefined) {
return kendo.toString(value, "n2");
} else {
return value;
}
}
</
script
>
thanks