Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Editing JSON with TreeGrid

    We are storing information in JSON format. We would like to use a TreeGrid to load, edit, and save JSON information. Is this possible. If so, where can I find documentation on how to do it.

    #2
    You can use JSON.decode(String) to obtain a JavaScriptObject, which you can traverse to create TreeNode instances and create a Tree from those.

    If you are not terrified of JavaScript, you might want to read the SmartClient documentation for Tree, as your JSON structure might be something you can directly pass to Tree in JSNI code, which could be both simpler and faster.

    Comment

    Working...
    X