kendo ui - KendoUI Template for Context Menu -



kendo ui - KendoUI Template for Context Menu -

i'm trying wire context menu json info source, can't seem set template.

if have datasource (as specified in docs)

var datasource = [{ text: "hello", imageurl: "pencil_icon.png", content: "i'm on side" }]

all fine , dandy (it's using default template imagine)

however, if seek utilize own template, undefined.

<script type="text/x-kendo-template" id="contextmenutemplate"> <li data-action="#=onclickjavascript#"><img src="@web_helpers.stratosphereimageurl("#=image#")" /> #=text#</li> </script> var datasource = [{ text: "bonjour", image: "@@pencil_icon", onclickjavascript: "alert('hello');" }] var menu = $("#contextmenu").kendocontextmenu({ template: kendo.template($("#contextmenutemplate").html()), datasource: datasource, ....

how can utilize template kendo context menu?

template seems not documented: http://docs.telerik.com/kendo-ui/api/javascript/ui/contextmenu

when seek utilize it, seems strip out elements , leaves text. http://dojo.telerik.com/asenu

i poked through source bit, didn't see anywhere template alternative have been used. seeing not documented, assume isn't working correctly because isn't meant used.

kendo-ui kendo-contextmenu

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -