2 Replies Latest reply on Feb 23, 2007 5:11 AM by boybles

    Getting DataGrid Properties

      How would I go about ascertaining which sort has been executed on which column on an existing datagrid. Also, would it be possible to get the y coordinate from the verticle scrollbar? I want to be able to save a user's place in a grid so that when the datagrid refreshes, I can return the user to the place on the grid that they were before the refresh.
        • 1. Re: Getting DataGrid Properties
          michael_ramirez44 Level 1
          To get the coordinates of the vertical scrollbar use the "verticalScrollPosition " property on your datagrid.

          verticalScrollPosition : Number
          The offset into the content from the top edge.

          To determine which column on a datagrid has been sorted add an event listener to the "headerRelease" event on your datagrid.
          • 2. Re: Getting DataGrid Properties
            boybles Level 1
            Thanks, Michael. Could you just give me a quick example of how you would use a listener with headerRelease to know which column has been selected for sorting? And is ther a way to automatically select one of the columns for sorting when the grid reloads?