Package com.extjs.gxt.ui.client.widget.table

Examples of com.extjs.gxt.ui.client.widget.table.TableColumn


    }
    return selection;
  }

  protected void handleTableSort(TableEvent te) {
    TableColumn col = table.getColumn(te.getColumnIndex());
    SortDir dir = col.getSortDir();
    dir = dir == SortDir.ASC ? SortDir.DESC : SortDir.ASC;
    store.sort(col.getId(), dir);
    te.setCancelled(true);
  }
View Full Code Here


    }
    return selection;
  }

  protected void handleTableSort(TableEvent te) {
    TableColumn col = table.getColumn(te.columnIndex);
    SortDir dir = col.getSortDir();
    dir = dir == SortDir.ASC ? SortDir.DESC : SortDir.ASC;
    store.sort(col.getId(), dir);
    te.doit = false;
  }
View Full Code Here

  protected void onDataChanged(StoreEvent se) {
    super.onDataChanged(se);
    createAll();

    if (store.getSortField() != null) {
      TableColumn col = table.getColumnModel().getColumn(store.getSortField());
      table.getTableHeader().onSortChange(col, store.getSortDir());
    } else {
      table.getTableHeader().clearSort();
    }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.table.TableColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.