0

Given the sample of the Kendo UI to load a tooltip with 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 is working fine, but the call to the Tooltip controller is made only once !? I'm unable to find a way to make sure the call is made -every- time the tooltip is hovered. Any help on this one ?

4

1 に答える 1

0

これは最新のリリースで修正されているようです: http ://www.kendoui.c​​om/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();
}

于 2013-05-26T19:15:15.790 に答える