You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will work but obviously a Tree is no use with a single item! As soon as I add the items to a List or Array (which JSTree needs) then it seems to interpret each String as only a String and doesn't read in any values.
I have set an alert before it builds the tree to double check and it looks to be presenting the data correctly:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been trying to get this working for days but failing. If I return a single string using this format from C#:
It will work but obviously a Tree is no use with a single item! As soon as I add the items to a List or Array (which JSTree needs) then it seems to interpret each String as only a String and doesn't read in any values.
I have set an alert before it builds the tree to double check and it looks to be presenting the data correctly:
but I get this instead:
Result
what am I doing wrong??
Javascript:
I originally tried with 1 big long string but JSTree didn't like anything after the first folders ending "}" so I had to move to an Array.
Beta Was this translation helpful? Give feedback.
All reactions