{"id":2500,"date":"2022-08-30T15:25:23","date_gmt":"2022-08-30T15:25:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/27\/change-width-of-a-kendo-numerictextbox-at-runtime-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:23","modified_gmt":"2022-08-30T15:25:23","slug":"change-width-of-a-kendo-numerictextbox-at-runtime-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/change-width-of-a-kendo-numerictextbox-at-runtime-collection-of-common-programming-errors\/","title":{"rendered":"Change width of a kendo numerictextbox at runtime-Collection of common programming errors"},"content":{"rendered":"<p>Hello I&#8217;m using Kendo UI numerictextbox. I need to change the width of a numerictextbox at runtine, according to external conditions.After invoking kendoNumericTextBox, for some events in the javascript I would like to change the width of the input part of k-numerictextbox. I&#8217;m not able to get it right.<\/p>\n<p>As I understand Kendo uses two inputs: one for displaying the value (with readonly attribute) and the other for editing and the editable one is identified by the id I use. I realized the hierarchy of classes created is:<\/p>\n<pre><code>class=\"k-widget k-numerictextbox\"  \nclass=\"k-numeric-wrap k-state-default k-expand-padding\"  \nclass=\"k-formatted-value k-numerictextbox k-input\"   \ninput = \"myId\" class=\"k-numerictextbox k-input\" \n<\/code><\/pre>\n<p>So when I use <code>$(#myid).width(newwidth);<\/code> I am not changing the width of the field, worst I get an effect of enlarging (<code>newwidth<\/code> greater than <code>oldwidth<\/code>) at the level of the above <code>k-numeric-wrap<\/code> while the input part remains the same.<\/p>\n<p>I hope I got it right as overview; I will appreciate any help. Thanks in advance<\/p>\n<p>Marco<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-27 08:39:48. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Hello I&#8217;m using Kendo UI numerictextbox. I need to change the width of a numerictextbox at runtine, according to external conditions.After invoking kendoNumericTextBox, for some events in the javascript I would like to change the width of the input part of k-numerictextbox. I&#8217;m not able to get it right. As I understand Kendo uses two [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2500","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2500"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2500\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}