cascadeOnCustomValue Boolean
(default: false)
Applicable to a parent ComboBox in a cascading scenario. If set to true
cascading will be triggered upon custom input in the parent widget. When set to false
(default) the child will not cascade and it will be disabled upon setting custom input in the parent ComboBox. Cascade on custom values works only when cascadeFromParentField
is not set for the child combo, or it points to the dataValueField
of the parent.
Example
<p><em>Hint: type `p3` in the parent ComboBox input</em></p>
<input id="parent" />
<input id="child" />
<script>
$("#parent").kendoComboBox({
dataTextField: "name",
dataValueField: "id",
cascadeOnCustomValue: true,
dataSource: [
{ name: "Parent1", id: "p1" },
{ name: "Parent2", id: "p2" }
]
});
$("#child").kendoComboBox({
cascadeFrom: "parent",
cascadeFromField: "parentId",
dataTextField: "name",
dataValueField: "id",
dataSource: [
{ name: "Child1", id: 1, parentId: "p1" },
{ name: "Child2", id: 2, parentId: "p2" },
{ name: "Child3", id: 3, parentId: "p3" },
{ name: "Child4", id: 4, parentId: "p3" }
]
});
</script>