ASP.NET Core TreeView href not working

1 Answer 68 Views
TreeView
jim
Top achievements
Rank 1
jim asked on 27 May 2022, 10:14 PM
  I am unable to get the href to work in the asp .net core treeview control (Razor).   Am I doing something wrong? 

 

                           <kendo-treeview name="treeView">
                                <items>
                                    <treeview-item text=Test expanded="true">
                                        <items>           
                                            <treeview-item text="Google" href="http://www.google.com" />   
                                        </items>
                                    </treeview-item>
                                </items>
                            </kendo-treeview>

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 01 Jun 2022, 12:34 PM

Hi Jim,

You could add a link to the TreeView item by using the "url" attribute:

<kendo-treeview name="treeView">
    <items>
        <treeview-item text="Test" expanded="true">
            <items>
                <treeview-item text="Google" url="http://www.google.com" />
            </items>
        </treeview-item>
    </items>
</kendo-treeview>

 

Regards, Mihaela Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TreeView
Asked by
jim
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or