Warning when using TreeView

1 Answer 68 Views
TreeView
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Bernd asked on 19 Nov 2021, 11:56 AM

I use a TreeView in my app and whenever I click on one of the triangles to open another tree layer, I get the attached warning in the console. This also happens when I use a Tree in a dropdown. Is there anything I can do about this? Here is the data that I use with it:


[
    {
        "id": 1,
        "text": "Hessen",
        "items": [
            { "id": 2, "text": "Mannheim" },
            { "id": 3, "text": "Frankfurt" }
        ]
    },
    {
        "id": 4,
        "text": "Rheinland-Pfalz",
        "items": [
            {
                "id": 5,
                "text": "Mainz",
                "items": [
                    { "id": 50, "text": "Gebäude A" },
                    { "id": 51, "text": "Gebäude B" },
                    { "id": 52, "text": "Gebäude C" }
                ]
            },
            { "id": 6, "text": "Kaiserslautern" },
            { "id": 7, "text": "Zweibrücken" }
        ]
    },
    {
        "id": 8,
        "text": "Bayern",
        "items": [
            { "id": 9, "text": "München" },
            { "id": 10, "text": "Rosenheim" }
        ]
    },
    {
        "id": 11,
        "text": "Saarland",
        "items": [
            { "Id": 12, "text": "Saarbrücken" },
            { "id": 13, "text": "Neunkirchen" }
        ]
    }
]

1 Answer, 1 is accepted

Sort by
1
Accepted
Filip
Telerik team
answered on 23 Nov 2021, 08:14 AM

Hi, Berndt,

After consulting with the dev team and inspecting the issue further we reached the conclusion that the behavior you have experienced is an issue. We have reproduced it and logged it here:

https://github.com/telerik/kendo-react/issues/723

where it can be monitored. However, there is a workaround available which is to disable the animations of the TreeView by using the animate prop as shown in the following example:

https://www.telerik.com/kendo-react-ui/components/treeview/api/TreeViewProps/#toc-animate

Thank you for bringing this issue to our attention and as a small token of appreciation I have granted you some Telerik points

Regards,Filip Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TreeView
Asked by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Filip
Telerik team
Share this question
or