Announcement

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

    Custom sorting on TreeGrid

    I am trying to perform some custom sorting on a TreeGrid (See attachment for a screenshot of grid sample). What I am trying to accomplish is when sorting to only sort the data under a certain level of the tree.

    In the example in the screenshot, only the items who are children of the INVESTMENTS & CASH nodes should be sorted. The Account, INVESTMENTS, & CASH nodes should always remain exactly where they are.

    It seems that the way the sorting works is that there is a function called
    Code:
    sortByProperties
    inside the isc.Array class which is what actually does the sorting. This in turn creates a function variable called
    Code:
    compareNormalized
    which gets passed to the
    Code:
    Array.sort
    function to do the sorting. These are all done at the low-level of the array & I do not want to attach this functionality to all arrays - I only want it in my subclasses of TreeGrids.

    Anyone have any ideas here?
    Attached Files

    #2
    Does somebody have an idea of how to achieve this?
    I'm facing the same issue.

    Comment

    Working...
    X