NumericTextBox reinitialization

2 posts, 0 answers
  1. Zixiang
    Zixiang avatar
    1 posts
    Member since:
    Aug 2016

    Posted 13 Nov 2017 Link to this post

    Hi guys,

    I'm trying to swap my Kendo UI widgets according to a dropdown.

    Currently, I call destroy on the widget, and remove all HTML within the container div holding the <input> that was used for the kendo widget. I then append a new div into the container and call the initialization code for kendoNumericTextBox again, but came upon this error:

    "Uncaught TypeError: Cannot read property '_move' of undefined".


    I have also tried the example provided on the web, that moves the origin input out, before calling destroy on my wrapper, with the same resulting error.




  2. Stefan
    Stefan avatar
    3035 posts

    Posted 15 Nov 2017 Link to this post

    Hello, Zixiang,

    Thank you for the details.

    I can assume that the issue may occur as the NumericTextBox actually has two inputs an removing only one of them may lead to an issue.

    I made an example where on the DropDown change event I destroy the current NumericTextBox and create a new one:

    If the issue still occurs, please provide a runnable example or modify the Dojo and I will gladly assist further.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top