• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create Editable Tree structure with database data

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Requirement is I should show a tree strucutre, fetching the data from database. The tree structure must be editable. The end user is allowed to rename/add/delete the leaves/node of the tree, the changes should be reflected in the data base. This task should be done using GWT. I am very new to GWT, please guide me how this task can be accomplished. Thanks in advance.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey you should use Ext GWT. They are having some inbuilt component, by using those you can achieve this.
 
Nomula vasudevu
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Das! Can you give any url/tutorial link for this. Is it freeware or commercial and one more thing is the data is very large which should be shown as tree structure.
 
subhransu das
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey there are various options like you can use GWT or EXT GWT.
Check out this link:
http://www.sencha.com/examples/explorer.html#roweditortreegrid
i hope you will find something on this. Only thing you have to write on the database thing on the save button listener of editor tree grid..
 
Nomula vasudevu
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Das! for the quick reply. The requirement needs that the user is allowed to add a tree node/leaf from the browser dynamically in addition to editing the existing nodes or leafs, I think the RowEditorTreeGrid don't has this feature. It only allows to edit the existing node/leafs.
 
subhransu das
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The rowEditorTree grid is not having that functionality but you can add some code under it to function like create and delete node.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Subhransu,
In future, while posting code, please UseCodeTags
 
subhransu das
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:Subhransu,
In future, while posting code, please UseCodeTags


sure....
 
reply
    Bookmark Topic Watch Topic
  • New Topic