Bug Report T823175
Visible to All Users

TreeView for Blazor - NavigateUrl doesn't work for a node after updating to v19.1.8

created 5 years ago (modified 5 years ago)

It works properly in v19.1.7 and earlier but doesn't work in v19.1.8.

Razor
<DxTreeView Data="@nodes" TextExpression="@(dataItem => ((TestData)dataItem).Caption)" NavigateUrlExpression="@(dataItem => ((TestData)dataItem).Link)" ChildrenExpression="@(dataItem => ((TestData)dataItem).ChildNodes)"></DxTreeView> @code { string SelectedGroup = "none"; List<TestData> nodes; protected override async Task OnInitializedAsync() { nodes = new List<TestData>(); for (int i = 0; i < 10; i++) { List<TestData> childNodes = new List<TestData>(); for (int j = 0; j < 3; j++) { TestData childNode = new TestData { Caption = "Child Caption " + i + "_" + j, Link = "https://devexpress.com" }; childNodes.Add(childNode); } TestData node = new TestData { Caption = "Caption " + i, ChildNodes = childNodes }; nodes.Add(node); } } protected void SelectionChanged(TreeViewNodeEventArgs e) { SelectedGroup = e.NodeInfo.Text; InvokeAsync(StateHasChanged); } public class TestData { public string Caption { get; set; } public string Link { get; set; } public List<TestData> ChildNodes { get; set; } } }

Answers approved by DevExpress Support

created 5 years ago (modified 5 years ago)

We have fixed the issue described in this ticket and will include the fix in our next update. The update will be available via the DevExpress NuGet server. Refer to this page to obtain your personal NuGet feed URL.

Additional information:

We have fixed this issue in the latest v19.1.9 update of our Blazor components. New version is available on DevExpress NuGet server. Refer to this page to learn more how to get your personal NuGet feed.

    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.