I've looked for a recent example of this and can't seem to find it.
I
have a listview that displays results. I want the user to see a slider
and edit the slider without having to enter the edit mode of the
listview. I'll use custom ajax to pull that off... BUT i can't seem to
add the slider to the template... it never renders. I just get the plain
input box.
I've tried this:
<script type="text/x-kendo-tmpl" id="template">
<div class="search-result k-block k-shadow" >
<input id="#=apiId#" type="button" class="k-button search-follow" value="#if(userId==null){#Follow#}else{#Unfollow#}#"/>
<input class="#=apiId#" value="0" data-role="slider"/>
</div>
</script>
I
have a listview that displays results. I want the user to see a slider
and edit the slider without having to enter the edit mode of the
listview. I'll use custom ajax to pull that off... BUT i can't seem to
add the slider to the template... it never renders. I just get the plain
input box.
I've tried this:
<script type="text/x-kendo-tmpl" id="template">
<div class="search-result k-block k-shadow" >
<input id="#=apiId#" type="button" class="k-button search-follow" value="#if(userId==null){#Follow#}else{#Unfollow#}#"/>
<input class="#=apiId#" value="0" data-role"slider"/># $("."+apiId).kendoSlider({
orientation: "vertical",
min: 0,
max: 5,
smallStep: 1,
largeStep: 5,
showButtons: false
});#
</div>
</script>
and this:<div class="search-result k-block k-shadow" >
<input id="#=apiId#" type="button" class="k-button search-follow" value="#if(userId==null){#Follow#}else{#Unfollow#}#"/>
<input class="#=apiId#" value="0" data-role"slider"/># $("."+apiId).kendoSlider({
orientation: "vertical",
min: 0,
max: 5,
smallStep: 1,
largeStep: 5,
showButtons: false
});#
</div>
</script>
<script type="text/x-kendo-tmpl" id="template">
<div class="search-result k-block k-shadow" >
<input id="#=apiId#" type="button" class="k-button search-follow" value="#if(userId==null){#Follow#}else{#Unfollow#}#"/>
<input class="#=apiId#" value="0" data-role="slider"/>
</div>
</script>