Skip to main content

[archive] Tree-View Expand

  • August 14, 2006
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 11 August 2006]

I have created a tree-view and filling with data from a menu file. The first item is the parrent then child data.

I am getting all of my data to display problem I am having is I need the parent to expand automaticly after all of the child items are created.

Currently have

Modify Tree, Item-to-add = menu-item, giving id-1, has-children = 1, expand= tvflag-expand.
---- this does the parent ----
loop to read child items
modify tree, parent = id-1, item-to-add = menu-item.
---- after this look has completed I am performing next step ----
modify tree, id-1, expand = tvflag-expand

thanks for any help

2 replies

[Migrated content. Thread originally posted on 11 August 2006]

I have created a tree-view and filling with data from a menu file. The first item is the parrent then child data.

I am getting all of my data to display problem I am having is I need the parent to expand automaticly after all of the child items are created.

Currently have

Modify Tree, Item-to-add = menu-item, giving id-1, has-children = 1, expand= tvflag-expand.
---- this does the parent ----
loop to read child items
modify tree, parent = id-1, item-to-add = menu-item.
---- after this look has completed I am performing next step ----
modify tree, id-1, expand = tvflag-expand

thanks for any help
Forgot the ITEM = ID-1 in my line it works now.

[Migrated content. Thread originally posted on 11 August 2006]

I have created a tree-view and filling with data from a menu file. The first item is the parrent then child data.

I am getting all of my data to display problem I am having is I need the parent to expand automaticly after all of the child items are created.

Currently have

Modify Tree, Item-to-add = menu-item, giving id-1, has-children = 1, expand= tvflag-expand.
---- this does the parent ----
loop to read child items
modify tree, parent = id-1, item-to-add = menu-item.
---- after this look has completed I am performing next step ----
modify tree, id-1, expand = tvflag-expand

thanks for any help
Forgot the ITEM = ID-1 in my line it works now.