What Changed
In previous versions, a client web browser navigated to an application's root page when the corresponding node was clicked if you specified an empty URL in the DxTreeViewNode.NavigateUrl property.
Starting with v21.1, you should specify the application's base path in the NavigateUrl
property if you want the web browser to navigate to the root page.
Reasons to Change
The TreeView component incorrectly recognized a node's empty URL as the root page's URL.
How to Update Existing Apps
In the NavigateUrl
property, specify the application's base path instead of an empty string.
Razor@*old code*@
<DxTreeView>
<Nodes>
<DxTreeViewNode NavigateUrl="" Text="Overview"></DxTreeViewNode>
<DxTreeViewNode NavigateUrl="datagrid" Text="Data Grid"></DxTreeViewNode>
</Nodes>
</DxTreeView>
@*new code*@
<DxTreeView>
<Nodes>
<DxTreeViewNode NavigateUrl="./" Text="Overview"></DxTreeViewNode> @* NavigateUrl specifies "./" instead of an empty string *@
<DxTreeViewNode NavigateUrl="datagrid" Text="Data Grid"></DxTreeViewNode>
</Nodes>
</DxTreeView>