Hey,
i get a problem with my cascading comboboxes. I can't get the value from the first combobox to put it in the data for the second datasource. So the datasource from combobox2 depends on the value from combobox1. I dont have a clue how to get the value out of combobox1.
I tried several things, but nothing worked for me.
The situation is mentioned below:
Does anyone has an idea?
i get a problem with my cascading comboboxes. I can't get the value from the first combobox to put it in the data for the second datasource. So the datasource from combobox2 depends on the value from combobox1. I dont have a clue how to get the value out of combobox1.
I tried several things, but nothing worked for me.
The situation is mentioned below:
$("#categories").kendoComboBox({
placeholder: "Select category...",
dataTextField: "Category",
dataValueField: "Category",
dataSource: {
type: "json",
transport: {
read: {
type:"POST",
}
}
}
}).data("kendoComboBox");
var products = $("#products").kendoComboBox({
autoBind: false,
cascadeFrom: "categories",
placeholder: "Select product...",
dataTextField: "Product",
dataValueField: "Product",
dataSource: {
type: "json",
transport: {
read: {
type:"POST",
data:{
/*Here is the Problem, i need the value from categories here in the data field
If i do it this way my cascading fails and the values aren't displayed in the combobox, so something is wrong here. value = valuefromcategories*/
value: function() {
return $("#categories").data("kendoComboBox").value();
}
}
}
}
}
})
Does anyone has an idea?