NavigateUrl only fires on the text part of the treeview component

On using the NavigateUrl property of the TreeView, I noticed that the url is only present with the text part of the TreeView and not the whole TreeView row. Users would have to click on the text to navigate to the url and not the whole row. Is there a solution or workaround for this or do I have to revert back to plain Blazor?


1 Reply 1 reply marked as answer

KR Keerthana Rajendran Syncfusion Team January 20, 2022 10:40 AM UTC

Hi Nick, 
 
Thanks for contacting Syncfusion support. 
 
To navigate to the URL while clicking the whole row on the TreeView node, you can enable the FullRowNavigable property of TreeView as shown below. 
 
@using Syncfusion.Blazor.Navigations 
 
<SfTreeView TValue="MailItem" FullRowNavigable="true"> 
    <TreeViewFieldsSettings TValue="MailItem" Id="Id" Text="FolderName" NavigateUrl="NavUrl" Child="SubFolders" DataSource="@MyFolder" Expanded="Expanded"></TreeViewFieldsSettings> 
</SfTreeView> 
 
 
 
Please let us know if you need any further assistance. 
 
Regards, 
Keerthana R. 


Marked as answer
Loader.
Up arrow icon