I saw another thread with some examples for using Knockout js to data-bind some Telerik controls, but I can't figure out how to use Knockout with a Telerik Editor control. Does anyone have any ideas?
That was the other thread I was referring to, actually.
I never actually got the data-binding to work at all, unfortunately. In my situation the data binding only needed to go one way: I edit in the editor and it updates other fields. In this situation I just wrote a client function for the editor's update event and updated the model that way. As below:
@(Html.Telerik().Editor()
.Name("text")
.ClientEvents(events => events
.OnChange("TextOnChanged")
)
)
<script type="text/javascript">
functionTextOnChanged() {
vareditor = $(this).data('tEditor');
ViewModel.text(editor.value());
}
</script>
Obviously, this does not suit all purposes, but it works for me. I'm still looking out for a better solution though.