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

Treeview display bugs in Q3 SP1 with angular templates

2 Answers 42 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Laszlo
Top achievements
Rank 1
Laszlo asked on 29 Jan 2015, 10:42 AM
Hi!

In the official Q3 SP1 release, when a treeview node is expanded, the node's text changes to the unprocessed angular template. See it in action at the official example, click on any node, and it's text will become {{dataItem.text}}

In the latest ("2014.3.1328") build, templates are not evaluated consistently: root item templates show up ok, but if the item's templates contain ng-if, all the ng-ifs in the child nodes seem to evaluate to false on first load. But ng-if-ed items show up after you expand the node's child items...

2 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 29 Jan 2015, 11:50 AM
I created a snippet that demonstrates the buggy behavior: http://dojo.telerik.com/UWorO
0
Alex Gyoshev
Telerik team
answered on 02 Feb 2015, 09:46 AM

Hello Jason,

As you have noted, the bug with templates not being evaluated has been fixed in the latest internal builds.

> root item templates show up ok, but if the item's templates contain ng-if, all the ng-ifs in the child nodes seem to evaluate to false on first load.
I believe that we have reproduced the problem based on your description, with the following template:

        <span k-template>
            <b ng-if="!!dataItem.flag">{{ dataItem.text }}</b>
            <em ng-if="!dataItem.flag">{{ dataItem.text }}</em>
        </span>

We have resolved the problem for the next internal build. If this is not the way to reproduce it, please provide some code that describes it.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Laszlo
Top achievements
Rank 1
Answers by
Jason
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or