Completed
Last Updated: 26 Nov 2014 16:54 by ADMIN
Imported User
Created on: 25 Nov 2014 14:41
Category: SPA
Type: Feature Request
1
Kendo Editor Change according to the text
Kendo editor should change it's size according to the text inside the text area if the relevant option is set to "true"
2 comments
ADMIN
Telerik Admin
Posted on: 26 Nov 2014 16:54
Paul's solution in the comments should be valid, hence closing this request.
Imported User
Posted on: 26 Nov 2014 10:38
can you not bind the size to a computed property in the model ...
var model = { 
    content: "some text", 
    height = function() { var charCount = this.get('content').length; /* do some math here */ },
    width = function() { var charCount = this.get('content').length; /* do some math here */ } 
}

kendo.bind($("#dynamicArea"), model);

<textarea id="dynamicArea" data-bind="text: content, style: { height: height, width: width }"