Hi, somebody knows like using 2 combobox nested???
I have a grid with 2 combobox, and I need binding the second combobox to first combobox:
$("#grid").kendoGrid({
dataSource: DowsSharedDataSource,
height: 400,
autoSync: true,
pageable: false,
scrollable: false,
navigatable: false,
selectable: "row",
sortable: false,
change: onChange,
editable: "popup",
columns: [
{field: "CMFault_Desc", title: "Fault Desc" },
{ field: "RT_Id1", editor: reasonComboEditor, title: "Reason 1" },
{field: "RT_Id2", editor: reasonComboEditor, title: "Reason 2" },
{command: ["edit"], title: " ", width: "190px" }
]
});
function reasonComboEditor(container, options) {
$('<input name="' + options.field + '"/>').appendTo(container).kendoComboBox({
dataSource: ReasonTreeSharedDataSource,
dataValueField: "Id",
dataTextField: "Descr",
autobind: false
});
}
Tks.
I have a grid with 2 combobox, and I need binding the second combobox to first combobox:
$("#grid").kendoGrid({
dataSource: DowsSharedDataSource,
height: 400,
autoSync: true,
pageable: false,
scrollable: false,
navigatable: false,
selectable: "row",
sortable: false,
change: onChange,
editable: "popup",
columns: [
{field: "CMFault_Desc", title: "Fault Desc" },
{ field: "RT_Id1", editor: reasonComboEditor, title: "Reason 1" },
{field: "RT_Id2", editor: reasonComboEditor, title: "Reason 2" },
{command: ["edit"], title: " ", width: "190px" }
]
});
$('<input name="' + options.field + '"/>').appendTo(container).kendoComboBox({
dataSource: ReasonTreeSharedDataSource,
dataValueField: "Id",
dataTextField: "Descr",
autobind: false
});
}