knockout.js - Knockout-Kendo: DropDown with Tooltip doesn't work -
i'm using knockout-kendo bindings.
i need use dropdownlist tooltip, using both bindings in 1 control doesn't work. knows why , how fix it?
var viewmodel = function() { this.choices = ko.observablearray(["apple", "orange", "banana"]); this.selectedchoice = ko.observable(); this.tiptext = "i tooltip!"; }; ko.applybindings(new viewmodel());
<input data-bind="kendodropdownlist: { data: choices, value: selectedchoice }, kendotooltip: { content: tiptext }" />
to fix, wrap in span , put tooltip on span.
<span data-bind="kendotooltip: { content: tiptext }"><input data-bind="kendodropdownlist: { data: choices, value: selectedchoice }" /></span>
as why, guess kendo proxies input item, tooltip winds being attached hidden "real" input, not visible kendo dropdown.
Comments
Post a Comment