Skip to main content
1-Visitor
May 15, 2014
Question

Dynamically creating and adding things to tree control

  • May 15, 2014
  • 1 reply
  • 1431 views

 

Hi,

How to dynamically create and add things to tree control? Can anyone please post an example?

 

1 reply

5-Regular Member
May 16, 2014

Hi Raj,

Take a look at the section of the wiki entitled, "Clone, Create and Delete Things." You'll likely need a Service to create Things from your Mashup and then the Service that is populating your Tree widget will need to be executed whenever you create a new Thing. The easiest way to do this would be to use the

ServiceInvokeCompleted

Event of the Service creating Things to execute the Service that is returning a list of Things.


Thanks,

Adam