I have a tree control that I have setup a right click menu on to simulate a user adding items to the tree control.  When they right click they get an option to add a new folder / item to the tree.  I pop up a dialog box where they can type in the name they want to give it.  I can’t find a way to dynamically add what they type as an item in the tree.  So I am wondering what the advice would be on how to handle this.  Should I jump to a new page with a different tree that has a hardcoded item just to simulate what happens?  I tried adding blank values into the tree and then setting their names dynamically but having the tree expanded ahead of time with blank items doesn’t really simulate what the user would be doing.  

I think what needs to happen is some more granular action options need to be added for the tree control.  We should be able to add elements with an action where we want them added and then expand the tree with an action to show that element.  In the meantime I could use some advice on what you would do to simulate this.

Thanks,

Bill

27 answers

Staff September 28, 2016

Hi Bill, you are right that ForeUI still lacks of an action to add new item into the tree control.

As for the possible ways to simulate this behavior, jumping to a new page with another tree control is of course an option. You can let the new page to use the original page as master page, and only overlap the new tree control on it. That can save a lot of time.

Also you can consider using the Reference element as the holder of different tree controls. Thanks to the newly added action to dynamically set target element, you can now store your tree controls in an inaccessible page, and dynamically set the reference target to different tree control.

I think both two approaches will work. The second one seems better if you want to “add” more items into the tree control.

#1

The reference item worked great!  It is still a lot of work for what seems like a pretty easy change in the software to accommodate actions on tree controls for adding elements and expanding collapsing.  But this will get the job done in the meantime.  

Thanks,

Bill

#2

This is something that happened to me as well! I was working on this eCommrece website of mine where I preparing for the next collection of ted lasso cristo fernandez hooded jacket. I would highly agree that there should be a specific option to control the tree.

#3

love how detailed this article is, great job! mold removal memphis

#4

cant wait to find this love, soo  great! newborn photography spokane

#5

Is it possible to set up a trace for behaviors? That is, display a non blocking, non intrusive message giving the trext of the behavior and the result of its execution for each behavior statement?  Concrete Driveways

#6

 If an icon is shown on the button, the look of the icon is not changed, and the state seems to be a mix of Normal and Disabled.

 

 

concrete pumping contractor

#7

Thank you for asking the same question I have in mind. Thank you guys for answering it. roofing contractors Cheltenham

#8

This is helpful in many ways, thanks for giving off information. jersey mortgage

#9

Thank you for this, it will help. tax preparation for business

#10

I have problems related to this, good thing I found this website. oklahoma farmers insurance

#11

such a good start for those who do not know these things. home builder oklahoma

#12

 This is useful especially for those who have so many files and all, cash home buyer in new jersey

#13

Great idea, best pooper scooper

#14

This works just fine, we buy houses for cash

#15

This helps me sort my files replacement windows oklahoma city

#16

This is a big help for my tree control, We buy houses philadelphia

#17

such an insight full and brilliant idea. places to eat in broken bow

#18

Tree control is interesting. hanging clothes storage

#19

100% reliable app click here

#20

good to know about tree control Emergency lighting Cheltenham

#21

This is such a great instructions. https://mgmobiledetail.com/

#22

Cool! Your content is well explained that everyone who visits here will understand. Thank you!

 

photo booth rentals near Austin

#23

Good information! Have you seen the sequel to five nights at freddy’s 2? I hope you enjoy this game; it is one of the greatest horror games currently accessible.

#24

Thanks for a wonderful share. Your article has proved the hard work and experience you have got in this field. Brilliant.i love it reading.

home painting pro

#25

We offer a fully mobile service, so we come to you! We pride ourselves on our professionalism and customer service, so you can rest assured knowing that your truck is in good hands.   jumpstart service

#26

Harlingen Truck Repair (Mobile Only)  We can also get you set up with a new set of tires if you need them. Just give us a call and we’ll be happy to help.

#27

Please login or Register to Submit Answer