asp.net mvc - Kendo UI - Tooltip reads only once -
given sample of kendo ui load tooltip ajax data.
<ul id="products" class="dairy-photos"> <li><a href="#" data-id="11"> <img src="@url.content("~/content/12.jpg")" /></a> </li> </ul> @(html.kendo().tooltip() .for("#products") .filter("a") .loadcontentfrom("details", "tooltip") .position(tooltipposition.top) .width(220) .height(280) .events(events => events.requeststart("requeststart"))) <script type="text/javascript"> function requeststart(e) { e.options.data = { id: e.target.data("id") } } </script>
this working fine, call tooltip controller made once !? i'm unable find way make sure call made -every- time tooltip hovered. on 1 ?
seems fixed in latest release : http://www.kendoui.com/forums/mvc/tooltip/load-tooltip-content-via-ajax-everytime-it-opens.aspx
@(html.kendo().tooltip() //... .events(e => { //... e.show("show"); })) <script type="text/javascript"> function show() { this.refresh(); }
Comments
Post a Comment