Skip navigation
Currently Being Moderated

AdvancedDataGrid sortCompareFunction not called

Sep 25, 2012 4:21 AM

Tags: #advanceddatagrid

Is there a known workaround for the sorting in the AdvancedDataGrid not working for the grouped data column

  • Currently Being Moderated
    Oct 1, 2012 7:34 AM   in reply to cduncan1


    Whay is your issue?

    Please share code.


    Mark as:
  • Currently Being Moderated
    Oct 15, 2013 8:57 AM   in reply to cduncan1

    So this is a bit of thread necromancy, but this may help someone.


    Without code samples, I can't be sure this is will solve the problem, but AdvancedDataGrid sorting seems to work better when a dataField is specified.  Even if a custom renderer is displaying composite data from the data object and the sort is based on a custom comparison function, the AdvancedDataGrid seems to expect a dataField to be specified.


    Check by debuggging, at line 1259 or so, in sortCanBeApplied.  The data object will be subjected to a number of hasOwnProperty checks.  It's possible a sort will be stopped there.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points