I am trying to implement a scenario of cascading dropdown with MVC3 & Knockout JS.
Example Scenario: below is the html table has 2nd and 3rd columns as dropdowns, want to implement it in cascading style, like column-dropdown should be populated based on the Table-Dropdown selection.
ColumnName Table-DropDown Column-DropDown DefaultValue
Test1 Table1 Table1-Columns ‘’
Test2 Table2 Table2-Columns ‘’
Got an example http://knockoutjs.com/examples/cartEditor.html
But could not get the complete code with all JSON data, so not able to figure out how exactly to implement this, help on this really appreciated.
If you just want to understand the cart example, then it is getting its data from a resource file at:
http://knockoutjs.com/examples/resources/sampleProductCategories.js
This should help you understand how everything is working and you can then adapt so it meets your Table Name / Column Name scenario.
For completeness, here is the content of the file.