Announcement

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

    Creating a TreeGrid with leaves which have the isFolder property set to true

    Hello all

    I am using SmartGWT 2.5 and I have a use case in which a treeGrid is required and this treeGrid has to have leaves to which you can drop records on dependent on a specific condition.

    Can anyone help me with an example on how can I build it?

    I tried adding Records to a treeGrid using record.setAttribute("isFolder", true);
    But this doesn't seem to work.

    Please help me!!!

    Thank you in advance,
    Driftdone

    #2
    I have a Treegrid bound to a Datasource. If I didn't set this property I couldn't drop on leaves (folder without children).
    This worked for me:

    Code:
    TreeGrid grid = new TreeGrid();
    grid.setDataProperties(new Tree(){
    	{
    		setDefaultIsFolder(true);
    	}
    });

    Comment


      #3
      How dynamically changing leaves in a TreeGrid

      Please... How dynamically changing leaves in a TreeGrid

      Comment

      Working...
      X