1 Reply Latest reply on May 16, 2014 8:04 AM by adam RSS
    rajgs Apprentice

    Dynamically creating and adding things to tree control

    Hi,

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

      • Dynamically creating and adding things to tree control
        adam Creator

        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