How to set the initial text in a Text Box in code? - Forum - Kendo UI Builder - Progress Community

How to set the initial text in a Text Box in code?

 Forum

How to set the initial text in a Text Box in code?

This question is not answered

KUIB 3, AngularJS app. I have a Text Box on a blank view. How can I set an initial value for the Text Box in code? Here's code that does not work in onShow:

this.$scope.$watch(() => {
    return this.$components.textbox0;
}, (newValue, oldValue) => {
    if (newValue) {
        newValue.value = 'some text that varies by user';
    }
});
All Replies
  • Are you using the ng-model keyword? It should normally look like this.

    $component.ng-model_name = 'some text that varies by user';