Results 1 to 2 of 2

Thread: default sort in a table

  1. #1

    Default default sort in a table

    Is there a way to specify the column (and direction) that the data is sorted by when the table is initially rendered? I see a getSortDir() method in TableColumn but there is no setSortDir().

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Washington, DC


    There is not a way to do this with the current code. I have made some changes that will allow you to specify the initial column sort state. You can call sort() on table before it is rendered. Code will go out in next rev.
        Table tbl = new Table(cm);
        tbl.sort(1, SortDir.DESC);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts