Announcement

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

    Path of tree

    Hi,

    A quick question.

    aTreeGrid.getSelectedPaths() returns the path of the selected record. I would like to get the path using the name rather than the id. I can't find a method that do this. Is there a method for it or do I have to implement it myself?


    eg. aTreeGrid.getSelectedPaths() returns [ "/709/13358" ] but I like it to return something like this "/folderA/file.csv.


    Regards.

    #2
    getSelectedPaths is already based on the Tree.nameProperty. Possibly you mean the titleProperty. You would need to do this yourself, but it's easy - getSelectedRecords(), iterate over those, call iterate up parents and combine titles.

    Comment

    Working...
    X