This is a migrated thread and some comments may be shown as answers.

text/x-kendo-tmpl +angularjs

3 Answers 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
leblanc
Top achievements
Rank 1
leblanc asked on 02 May 2013, 04:30 PM
our single page app using angularjs is near completion.

One ng-view screen is attached - using kendo controls since there is benefit for this screen to make use of DataSourceRequest, listview/pager

I've integrated with kendo using directives - that is the screen you see.


When trying to add interaction with angularjs  using ng-click - it doesn't work.  Probably since this dom was added outside of angularjs's dom manipulation.
<script type="text/x-kendo-tmpl" id="FilterByTypeItemTemplate">
    <li><a href="\##:Name #" ng-click="FilterByType('#:Name #')"><i class="icon-chevron-right pull-right"></i><em class="pull-right">(#:Count #)</em> #:Name #    </a></li>
</script>


And this is the problem....  How do I get kendo template to work with angularjs?

I also don't see a datasourcechanged event on listview to notify me when the datasource underneath has been changed. 



3 Answers, 1 is accepted

Sort by
0
leblanc
Top achievements
Rank 1
answered on 02 May 2013, 04:42 PM
I may have found a solution: http://jsfiddle.net/pavlovt/zYRRu/16/

http://docs.kendoui.com/api/web/listview#events-dataBound

although i need an event after the dom has been rendered/appended.
0
Atanas Korchev
Telerik team
answered on 03 May 2013, 07:47 AM
Hi,

 The dataBound event of the listview is fired after it populates with data (renders the template) after a data source change.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Robert
Top achievements
Rank 1
answered on 13 Sep 2013, 12:31 AM
So what is the solution? The Fiddle does not use a template.
I am also trying to figure out how to get AngularJS to work when the code is in a template. Additionally, this is a single page app. I have an event I could do something on, but I don't see what it is that needs to be done.

Tags
General Discussions
Asked by
leblanc
Top achievements
Rank 1
Answers by
leblanc
Top achievements
Rank 1
Atanas Korchev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or