J
jts-law
Guest
I have a dropdown list setup in the topSection.html and constructor of my blank page. The dropdown is working fine, but now I want to be able to call select() on it to set the currently selected record via code. topSection.html: OK Constructor code: this.$components['ddScenario'] = { widget: null, options: { dataSource: this.$ds['dsScenario'], dataTextField: "name", dataValueField: "sid", optionLabel: "", valuePrimitive: false, selectedIndex: 0 }, events: { onChange: (e) => { }, onSelect: (e) => { } }, validation: { required: false } }; I've tried to use angular.element("#ddScenario").data("kendoDropDownList") and that doesn't work. I also tried this with the drop-down-list element and a few other variations and nothing will return a valid object. I also tried using this.$components.ddScenario.widget.select(0) which didn't work either. How do get this object? Louis
Continue reading...
Continue reading...