This is a migrated thread and some comments may be shown as answers.

MVVM virtual cascaded dropdown lists

1 Answer 262 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Jan 2019, 12:31 PM

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.

http://dojo.telerik.com/EQUDOBUg/4

Thank you very much

Best regards

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 29 Jan 2019, 09:35 AM
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.

Regards,
Dimitar
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.
Tags
MVVM
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or