To a listview with pictures, I attach a tooltip to every picutre and want to ajax load the tool tip content.
ToolTip:
The helper function:
Ajax call is fired just fine and returns data, however, the tool tip is show without content.
What am I doing wrong?
ToolTip:
var tooltip = $("#lvPictures").kendoTooltip({ filter: "img.imgInfo", width: 120, position: "top", autoHide: false, content: function (e) { var target = e.target; var fileId = target.data('identity'); return helpers.GetPictureToopTip(fileId); }}).data("kendoTooltip");var helpers = { GetPictureToopTip: function (fileId) { helpers.GetFile(fileId).done(function (json) { var jsonObj = JSON.parse(json.d); var html = ''; html += '<div>Picture info</div>' html += '<div>' + jsonObj.FileName + '</div>' return html; }); }}What am I doing wrong?
