MVVM virtual cascaded dropdown lists

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Jun 2017

    Posted 25 Jan 2019 Link to this post

    Dear Telerik Forum

    We have a problem with two virtual cascaded dropdown lists.
    I gave an example where one dropdown list contains Swiss cities and the second dropdown list contains the corresponding postal codes.
    Depending on the selected city, the drop-down menu with the postal codes should only show those that exist in the selected city. This also works as long as the second is not loaded virtual. As soon as the second dropdown is loaded virtual an error occurs, 'c is not a function'. Without the 'data-virtual' option it works fine again.

    Thank you very much

    Best regards

  2. Dimitar
    Dimitar avatar
    814 posts

    Posted 29 Jan 2019 Link to this post

    Hello Michael,

    The provided Dojo example contains external script references that make it hard for debugging. Instead, I have prepared an isolated example on the following Dojo, where you can find two cascading DropDownLists that are configured with MVVM, one of which is virtualized. Both of the widgets are initialized correctly and no JavaScript error is thrown when the cascading functionality is triggered.

    I would suggest using this example as a starting point and develop it further according to the project requirements.

    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top