Breaking Change T980276
Visible to All Users

TreeView - The DxTreeViewNode.NavigateUrl property set to an empty URL no longer has an effect.

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>

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.