Loading ...
Sorry, an error occurred while loading the content.

Re: Basing default sort direction on column sort options

Expand Messages
  • Mike Prince
    This was actually quite easy: // Set default sort order if (oColumn.sortOptions.defaultDir === YAHOO.widget.DataTable.CLASS_DESC) { var sDir =
    Message 1 of 5 , Aug 22, 2008
    • 0 Attachment
      This was actually quite easy:

      // Set default sort order
      if (oColumn.sortOptions.defaultDir === YAHOO.widget.DataTable.CLASS_DESC)
      {
      var sDir = YAHOO.widget.DataTable.CLASS_DESC;
      }
      else
      {
      var sDir = YAHOO.widget.DataTable.CLASS_ASC;
      }
    Your message has been successfully submitted and would be delivered to recipients shortly.