Welcome Guest Search | Active Topics | Sign In | Register

setting a checkbox in a db bound treeview Options
stever
Posted: Friday, October 2, 2009 11:14:08 AM
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
eo_support
Posted: Friday, October 2, 2009 11:19:37 AM
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
stever
Posted: Friday, October 2, 2009 11:39:24 AM
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


eo_support
Posted: Friday, October 2, 2009 11:45:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Please do not make duplicate posts. We have already replied your private message.
stever
Posted: Friday, October 2, 2009 11:48:20 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.