I've been trying to get my comboboxes cascading correctly using the guide on the Cascading ComboBoxes page and I think the information there may be incorrect. I wanted to use the approach where I set the parameters manually and copied the code at the very bottom of the page:
This doesn't work, since I believe parentID: $("#parent").val() is interpreted at set up time, rather than when cascading. The correct code for the data portion would be:
In the answer there's a reference to the "How it works" section - I couldn't find this, could a link be provided if it still exists?
$("#child").kendoComboBox({
cascadeFrom: "parent",
dataTextField: "childName",
dataValueField: "childID",
dataSource: {
transport: {
read: {
url: "",
data: {
parentID: $("#parent").val()
}
}
}
}
});
This doesn't work, since I believe parentID: $("#parent").val() is interpreted at set up time, rather than when cascading. The correct code for the data portion would be:
data: function() {
parentID: $("#parent").val()
}
In the answer there's a reference to the "How it works" section - I couldn't find this, could a link be provided if it still exists?