Skip to main content
10-Marble
May 12, 2017 10:31 AM UTC
Solved

How to create tree using code only without Tree entity?

Hi All,

How to create tree using code only without Tree entity?

ankiguptaAnswer
5-Regular Member
May 16, 2017 3:53 AM UTC

Hi Bhuwaneshwar Gupta​,

Change row.from = undefined;

row.from ="Root"

Root can be any value. We just need to add the same in the Tree widget -> RootParentId property.

I hope it helps.

11 replies

5-Regular Member
May 12, 2017 12:18 PM UTC

Hi Bhuwaneshwar Gupta​,

As per my understanding tree widget is a nested infotable with Parent as String and child as infotable (  Datashape same as parent). So, you can try to code accordingly.

I hope it helps.

Translate
bgupta-210-MarbleAuthor
10-Marble
May 12, 2017 12:47 PM UTC

Hi Ankit,

Can you share me  some chunk of code for this?

Translate
5-Regular Member
May 15, 2017 4:38 AM UTC

Hi Bhuwaneshwar Gupta​,

Are you looking for the insert, delete functions in the Tree Infotable?

I don't have a sample code available for same.

Translate
bgupta-210-MarbleAuthor
10-Marble
May 12, 2017 12:44 PM UTC

Hi Ankit,

Can you share me  some chunk of code for this?

Translate