Welcome Guest Search | Active Topics | Sign In | Register

Treeview Seperator Options
Ben Switzer
Posted: Tuesday, March 2, 2010 11:02:12 AM
Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 30
Hello, long time since I've posted. I am currently using v2007.2.16 and have no way to updgrade as the approval process within the DoD is much more stringent. Hopefully you can help me out. I've been looking at the documentation and within that the seperator Look item for Treeview shows. However, when you first create a tree, from any template, the seperator look item is not part of the default collection of lookitems. Even the New Seperator button is disabled. Any suggestions would be appreciated, I am hoping to be able to produce a Treeview that looks something like the following:

+Item 1
--Item1a
--Item1b

+Item 2
--Item 2a
+Item 3
--Item 3a
eo_support
Posted: Tuesday, March 2, 2010 11:15:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I don't think you can do that. Unlike menu, treeView does not really have the concept of "separator". That's why all separator-related UIs are disabled. The closes you can get is to create a TreeNode and then set that TreeNode's Text to something representing a horizontal line, for example, a horizontal line image. But first it would not strike through the vertical tree view lines; second it will have to have a fixed width.

Thanks!
Ben Switzer
Posted: Tuesday, March 2, 2010 11:21:13 AM
Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 30
Thanks, I will try to do that. This data is bound from a hierarchial dataset. What would be the best method for adding the seperation node?
eo_support
Posted: Tuesday, March 2, 2010 11:35:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There really isn't anything about "adding the separator" because there isn't a separator for a TreeView at all. So everything you have with regular tree node still applies.

Thanks!
Ben Switzer
Posted: Tuesday, March 2, 2010 11:42:53 AM
Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 30
I guess I didnt phrase my question correctly. The data is bound to the tree. There is no seperation in the data. Should I capture the item-databound event or something simliar in order to put the node that visibly seperates the data that I need to seperate? What is your suggestion for doing this with a data bound treeview.
eo_support
Posted: Tuesday, March 2, 2010 3:31:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We understand your question. What we meant is we don't suggest on such specific scenarios. We can tell you there is no such thing as separator from the TreeView point of view thus all you have are regular tree nodes. We can also tell you what options are available for you to make a specific tree node look different than others (for example, one way is by setting the node's Text to something different, another way is to set the tree node to use a different style). But as to how to devise a plan to make a distinction in your DB and how to translate this distinction into something the tree node support will be up to you. Basically we tell you what the product provides but we do not advice on your particular project or business scenario.

Thanks!
Ben Switzer
Posted: Wednesday, March 3, 2010 9:11:49 AM
Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 30
Thanks. I wasn't asking for you to write my code. I know that you guys know the EO controls than I do and thought maybe I missed some "Treeview.fubar" function that would be "easier" than me using the Item databound event. For instance I thought, due to the documentation, a separator was possible with a Treeview. Hopefully you understand.

I've coded the process of putting the separation into the data. I was looking at "looks" and I couldn't find where I could set the Margin image, and line image for a look. I know this is possible for a node. Did I miss something for setting those for a look?]

Thanks for the great support.
eo_support
Posted: Wednesday, March 3, 2010 10:41:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Ben Switzer wrote:
couldn't find where I could set the Margin image, and line image for a look.


No, I don't think they are possible. Look items are just a shortcut for you to automatically set certain properties and it does not cover all properties. For example, setting Text property on look items would have no effect. As to the line image, we have already mentioned in our first reply that there is no way for you to have anything that strikes through the line images. So in short TreeView does not have separators and you can not achieve the type of result you were hopping for, we would appreciate if you take this as our final answer because what you are asking for really does not exist.

Thanks


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.