How to change the value of a kendo bound html input

半城伤御伤魂 提交于 2019-11-29 13:58:16

You need simulate change event. Try this code:

$('#test').val("testvalue").change();

I tried the above answer but did not work for me. Although the value had indeed changed, the view did not reflect that fact. This worked for me:

       var myvar = $("#myid").data("kendoNumericTextBox");
       myvar.value("newValue");
       myvar.trigger("change", { value: myvar.value() });
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!