This is a migrated thread and some comments may be shown as answers.

[Solved] TreeViewItem vs TreeViewItemModel

1 Answer 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Attila Vigh
Top achievements
Rank 1
Attila Vigh asked on 04 Sep 2010, 10:33 PM
  • we are using loadOnDemand feature, but not works after we installed new version 825
  • TreeViewItemModel is obsolete
  • we have tried with TreeViewItem, but not works, because  treeview.js uses old NavigateUrl
  •             html.cat(item.NavigateUrl ? '<a href="' + item.NavigateUrl + '" class="t-link ' : '<span class="')
                        .cat('t-in').catIf(' t-state-disabled', item.Enabled === false)
                    .cat('">')

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 06 Sep 2010, 12:12 PM
Hi Attila Vigh,

Thank you for reporting this issue.

I confirm that it is a bug, which will be fixed with next official release of Telerik Components for ASP.NET MVC.

Please, replace the existing code

html.cat(item.NavigateUrl ? '<a href="' + item.NavigateUrl + '" class="t-link ' : '<span class="')
                .cat('t-in').catIf(' t-state-disabled', item.Enabled === false)
                .cat('">');
....
html.catIf(item.Text, item.Encoded === false)
                .catIf(item.Text.replace(/</g, '<').replace(/>/g, '>'),
                         item.Encoded !== false)
                .cat(item.NavigateUrl ? '</a>' : '</span>');

 with this

var navigateUrl = item.NavigateUrl || item.Url;
 
html.cat(navigateUrl ? '<a href="' + navigateUrl + '" class="t-link ' : '<span class="')
                .cat('t-in').catIf(' t-state-disabled', item.Enabled === false)
                .cat('">');
....
html.catIf(item.Text, item.Encoded === false)
                .catIf(item.Text.replace(/</g, '<').replace(/>/g, '>'),
                        item.Encoded !== false)
                .cat(navigateUrl ? '</a>' : '</span>');

in telerik.treeview.js and rebuild the source project.
Make sure the build configuration is set to Release MVC2 NET35 if you are using ASP.NET MVC 2.

I have updated your Telerik points.

Greetings,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Attila Vigh
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or