-
Notifications
You must be signed in to change notification settings - Fork 209
Does kendo-list-view actually work? #83
Comments
I have managed to write a directive as shown below but again this feels very nasty .directive('kendolist', function() { link: function(scope,element,attrs) { element.kendoListView({ dataSource: scope.source, template: kendo.template($(scope.temp).html()) }); } } });
|
it's totally doable to specify template in controller, just
|
Can you specify in the partial? div k-template='' ? |
You said at the first post that you have managed to specify in k-template. But I think you like to supply the script block other than one line simple template. So I will choose to supply the template in controller since I can use Angularjs's $templateCache service to get a template for use. |
Sorry, I should be more clear, what I mean is can you do something like this: <div k-data-source="someData" k-template="kendo.template('#:template# ')"></div> <script type="text/x-kendo-tmpl" id="template"> |
Angular doc says what you can put in k-template="..." is Angular Expression. It's "like" JS expression but not the same thing. So you cannot do k-template="kendo.template('#:template# ')" |
Aye, I will. Thank you muchly for your help |
Hi,
I'm trying to do a kendo listview control. The directive kendo-list-view seems to work on a div. However I'm at a loss for how to specify the template?
The best I have managed is: <div kendo-list-view k-data-source="people" k-template="'<div>#=name# #=age#</div>'">
</div>
However that's not real awesome. What was the plan for working with this? Is there anyway to specify a script template block?
The text was updated successfully, but these errors were encountered: