or
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
<
div
class
=
"product"
>
<
img
src
=
"myimage.jpg"
alt
=
"${Name} image"
id
=
"${ModelID}"
/>
<
h2
>${Name}</
h2
>
<
h3
>Starting from: $${kendo.toString(parseFloat(Price), "n0")}</
h3
>
<
div
class
=
"edit-buttons"
>
<
a
id
=
"viewbtn"
class
=
"k-button k-button-icontext"
href
=
"\\#"
>View </
a
>
<
a
id
=
"tooltipbtn"
class
=
"k-button k-button-icontext"
href
=
"\\#"
>TOOLTIP</
a
>
<
p
id
=
"tooltipcontent"
style
=
"display:none"
>
#for (var i=0; i<
VariationsForProduct.length
; i++){#
${VariationsForProduct[i].Name} $${VariationsForProduct[i].StartingPrice}
<br />
# } #
</
p
>
</
div
>
</
div
>
</
script
>
$.ui.plugin.add(
"resizable"
,
"iframeFix"
,
start:
function
() {
var
o = $(
this
).data(
'draggable'
).options;
$(o.iframeFix ===
true
?
"iframe"
: o.iframeFix).each(
function
() {
$(
'<div class="ui-draggable-iframeFix" style="background: #fff;"></div>'
)
.css({
width:
this
.offsetWidth+
"px"
, height:
this
.offsetHeight+
"px"
,
position:
"absolute"
, opacity:
"0.001"
, zIndex: 1000
})
.css($(
this
).offset())
.appendTo(
"body"
);
});
},
stop:
function
() {
$(
"div.ui-draggable-iframeFix"
).each(
function
() {
this
.parentNode.removeChild(
this
);
});
//Remove frame helpers
}
});