Hi everyone,
I'm trying to display items containing html inside a dropdown.
So as an example let's imagine I got some items like :
var tMyItems = [{ value : "0", template: "<div class='myclass'><p>Item 1</p></div>" },
{ value : "1", template: "<div class='myclass'><p>Item 2</p></div>" }]
Im binding them to a dropdown using
$("#LayoutDDL").kendoDropDownList({
dataSource: tMyItems
dataTextField: "template",
dataValueField: "value"
});
And I would like to see each item content interpreted as html (no markups, css applied ..) So far I'm seeing the item itself but the html is not interpreted.
Is there anyways to handle that with the dropdown ?
Thanks,
Damien
I'm trying to display items containing html inside a dropdown.
So as an example let's imagine I got some items like :
var tMyItems = [{ value : "0", template: "<div class='myclass'><p>Item 1</p></div>" },
{ value : "1", template: "<div class='myclass'><p>Item 2</p></div>" }]
Im binding them to a dropdown using
$("#LayoutDDL").kendoDropDownList({
dataSource: tMyItems
dataTextField: "template",
dataValueField: "value"
});
And I would like to see each item content interpreted as html (no markups, css applied ..) So far I'm seeing the item itself but the html is not interpreted.
Is there anyways to handle that with the dropdown ?
Thanks,
Damien