Hi,
I'd like to use the Kendo drop down with an Angular template inside the markup or some referenced file.
In my case it is used like this at the moment:
But I would like to use it the "angular way", like:
That way, the drop down items, defined in the template, only appear, if I declare the template manually inside some "k-options". I've already experimented with the "ng-non-bindable" attribute, so that the angular expression can be interpreted later, but without success.
Some advice would be helpful.
I'm also looking for a solution to reference some template url. Can this be done natively with Angular or Kendo?
Kind Regards
Thomas
I'd like to use the Kendo drop down with an Angular template inside the markup or some referenced file.
In my case it is used like this at the moment:
<
select
...
k-template="'<b>#: displayName #</
b
><
br
/>#: name #'"
k-value-template="'#: displayName #
'">
</
select
>
But I would like to use it the "angular way", like:
<
select
...
k-template="'<b>{{dataItem.displayName}}</
b
><
br
/>{{dataItem.name}}'"
k-value-template="'{{dataItem.displayName}}'">
</
select
>
That way, the drop down items, defined in the template, only appear, if I declare the template manually inside some "k-options". I've already experimented with the "ng-non-bindable" attribute, so that the angular expression can be interpreted later, but without success.
Some advice would be helpful.
I'm also looking for a solution to reference some template url. Can this be done natively with Angular or Kendo?
Kind Regards
Thomas