Treeview display bugs in Q3 SP1 with angular templates

3 posts, 0 answers
  1. Laszlo
    Laszlo avatar
    8 posts
    Member since:
    Sep 2014

    Posted 29 Jan 2015 Link to this post

    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. Jason
    Jason avatar
    3 posts
    Member since:
    Oct 2013

    Posted 29 Jan 2015 Link to this post

    I created a snippet that demonstrates the buggy behavior: http://dojo.telerik.com/UWorO
  3. Kendo UI is VS 2017 Ready
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 02 Feb 2015 Link to this post

    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!
     
Back to Top