Dynamically change the contents of a tooltip in kendui

I have a drag and drop function. When an element dragged, I want to dynamically set the position of the element and display it in the tooltip . How can i do this? using kendui.

I defined as:

 <div id='drag'><p>Drag me</p></div> 

I defined a hint like:

 $("#drag").kendoToolTip({ position:"top", content: "Initial" }); 

To drag and drop

  $("#drag").draggable({ drag: function(){ $("#drag").data("kendoToolTip").content("Dragging"); }, stop: function(){ $("#drag").data("kendoToolTip").content("Drag stopped"); } }); 

And I want to show the tip of the tool on a div continuously on dragging . How can i do this any help is appreciated

+4
source share
1 answer

try this friend

  $("#drag").data("kendoTooltip").options.content = "set content here..."; $("#drag").data("kendoTooltip").refresh(); 
+9
source

All Articles