|
Rank: Member Groups: Member
Joined: 3/9/2009 Posts: 25
|
Dear all,
How can I find if a node exists in a db bound tree and then set the checkbox to checked? I must be missing somthing simple.. I can find it as a navigationalitem but I cant cast to a treenode to set the checked property. Is it possible?
Thanks for any help.
Steve
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Can you explain what you mean by "I cant cast to a treenode to set the checked property"? If you get the navigation item from a tree view, then that navigation item is a tree node and you can cast it. So you maybe getting something else that you thought is a navigation item but it is not.
Thanks
|
|
Rank: Member Groups: Member
Joined: 3/9/2009 Posts: 25
|
What I would like to do is
AttributeTree.DataSource = CreateAttributeDataSet() AttributeTree.DataBind()
Dim item() As EO.Web.NavigationItem item = AttributeTree.SearchItems("Virtual Bytes", 12)
But it doesnt like this last line item(0).Checked = True
Thanks for your help
Steve
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Please do not make duplicate posts. We have already replied your private message.
|
|
Rank: Member Groups: Member
Joined: 3/9/2009 Posts: 25
|
sorry I couldnt find my reply anywhere so I wasnt sure if it had been saved.
Thanks for the reply though it worked brilliantly
Steve
|
|