Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave 14 posts 35 karma points
    Jan 24, 2014 @ 14:11
    Dave
    0

    Custom tree node sort order

    How can I control the order of nodes added to a custom tree? I have multiple classes adding root nodes to an app alias and a tree in that new section - but I dont seem to be able to control the order of those nodes.

  • Robert 20 posts 39 karma points
    Oct 24, 2014 @ 01:24
    Robert
    0

    Looking for an answer to this. Following Tim's guide. Just need the sort order code.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Oct 24, 2014 @ 09:27
    Dave Woestenborghs
    0

    In the tree attribute you decoreate your tree class with there is a sortorder property. That can be used to order the different rood nodes.

  • Robert 20 posts 39 karma points
    Oct 24, 2014 @ 18:14
    Robert
    0

    Thanks for the reply Dave!

    I didn't read your question carefully. I have 1 root node and I want to sort the level 1 child nodes using the new 7 sort flyout function.

  • Comment author was deleted

    Oct 27, 2014 @ 11:25

    You'll need to create a custom menu action for that one, so storing the sortorder and then creating a dialog that will allow you to sort them (using ui sortable for example)

  • Robert 20 posts 39 karma points
    Oct 27, 2014 @ 17:31
    Robert
    0

    Thanks Tim, Is it possible to use an existing angular backoffice view/directive, like the existing sort flyout?

  • Comment author was deleted

    Oct 28, 2014 @ 10:08

    Don't think so since you are working with custom objects so code also needs to be custom

Please Sign in or register to post replies

Write your reply to:

Draft