This question is locked. New answers and comments are not allowed.
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
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