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

TreeViewItem - Cannot Associate Action or Link

1 Answer 60 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.
Roberto
Top achievements
Rank 1
Roberto asked on 12 Nov 2010, 04:00 PM
Dear All,

I'm trying to return a list of nodes with an Ajax Call in order to populate my Tree View.

I return to my view a Json Result as indicated in telerik demos

var nodes = from n in repository
select new Telerik.Web.Mvc.UI.TreeViewItem
                        {
                            Text = n.name
                            ,
                            Value = n.name
                            , ActionName = "SearchDistrict"
                            ,ControllerName = "Centers"
                            , LoadOnDemand = true
                            , Enabled = true
                            , Url = "/Centers/District/" + n.name.ToString()
                            , Html = "<a > Link </a>"
                        };
It works well but TreeView Child Items doesn't have any sort of link functionality.

Does Anyone know how to resolve this Issue?

Thanks in advance

Roberto



 

1 Answer, 1 is accepted

Sort by
0
sasho
Top achievements
Rank 1
answered on 19 Feb 2011, 07:12 AM
Just use the URL property only. I did it and it works great
Tags
TreeView
Asked by
Roberto
Top achievements
Rank 1
Answers by
sasho
Top achievements
Rank 1
Share this question
or