I found help from http://docs.telerik.com/kendo-ui/api/javascript/ui/tooltip in getting this far. However, we are using Kendo MVC Widgets so, the line of code
below "return target.text() is never populated. I did find by poking around in debugger that e.target.context.value had the values for each generated <input> tag in both the Html.Kendo().TextBox() and Html.Kendo().ComboBox().
Here's the code that displays a Kendo Tooltip for every input html element within a specific div.
$(document).ready(function () {
$("#project-tabs").kendoTooltip({
filter: "input",
content: function (e) {
var target = e.target; // the element for which the tooltip is shown
//return target.text(); // set the element text as content of the tooltip --> This does not work on MVC.
return e.target.context.value; // This does work on MVC Widget
}
});
});
Is there a better way?
below "return target.text() is never populated. I did find by poking around in debugger that e.target.context.value had the values for each generated <input> tag in both the Html.Kendo().TextBox() and Html.Kendo().ComboBox().
Here's the code that displays a Kendo Tooltip for every input html element within a specific div.
$(document).ready(function () {
$("#project-tabs").kendoTooltip({
filter: "input",
content: function (e) {
var target = e.target; // the element for which the tooltip is shown
//return target.text(); // set the element text as content of the tooltip --> This does not work on MVC.
return e.target.context.value; // This does work on MVC Widget
}
});
});
Is there a better way?