Results 1 to 3 of 3

Thread: [3.2.x,3.3] Ext.ux.grid.MultiSort (Handle MultiSorting of Grids within a window)

  1. #1
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    21
      0  

    Default [3.2.x,3.3] Ext.ux.grid.MultiSort (Handle MultiSorting of Grids within a window)

    Sure, MultiSorting of Grids is in examples. But sometimes, you don't have a whole toolbar for sorting. So I decided to manage it in a separate window.
    Extract the archive directly into examples folder and open multisort.html to see how it is done.
    Tested in FF3.6, IE8, Opera10.5 and Chromium6.0 on Windows.

    To have it in German, use:
    Code:
    Ext.ns('Ext.ux.grid');
    
    if (Ext.ux.grid.SortGridPanel) {
    	Ext.override(Ext.ux.grid.SortGridPanel, {
    		buttonCfg: {
    			up: {
    				text: 'Nach oben'
    			},
    			down: {
    				text: 'Nach unten'
    			},
    			asc: {
    				text: 'Aufsteigend sortieren'
    			},
    			desc: {
    				text: 'Absteigend sortieren'
    			}
    		},
    		columnText: 'Spalte'
    	});
    }
    if (Ext.ux.grid.SortWindow) {
    	Ext.override(Ext.ux.grid.SortWindow, {
    		buttonCfg: {
    			cancel: {
    				text: 'Abbrechen'
    			},
    			ok: {
    				text: 'OK'
    			}
    		},
    		title: 'Sortierung'
    	});
    }
    if (Ext.ux.grid.SortButton) {
    	Ext.override(Ext.ux.grid.SortButton, {
    		text: 'Sortierung'
    	});
    }
    Attached Images Attached Images
    Attached Files Attached Files
    Programming today is a race between software engineers striving to build bigger and better ?diot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    1
    Vote Rating
    0
      0  

    Default Thanks!

    Awesome! You've made my day.

  3. #3
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142
    Vote Rating
    0
      0  

    Default

    Hi makana,

    Thanks for your sharing.

    I just modify the function sortStore to prevent an error from occurring if no selection was made and the user click the OK button


    sortStore: function() {
    >> if (this.getSorters().length > 0){
    this.grid.getStore().multiSort(this.getSorters(), 'ASC');
    >> }
    this.hide();
    }
    Tamditi Karim

Similar Threads

  1. [2.3] Multisort grid and store
    By MeDavid in forum Ext 2.x: User Extensions and Plugins
    Replies: 4
    Last Post: 11 Sep 2013, 8:03 PM
  2. [FIXED-786][3.2-beta]Ext.data.Store -> multiSort
    By tobiu in forum Ext 3.x: Bugs
    Replies: 11
    Last Post: 9 Feb 2011, 1:35 PM
  3. [2.0rc1] Safari does not handle cursor keys in grids
    By schmidetzki in forum Ext 2.x: Bugs
    Replies: 2
    Last Post: 26 Nov 2007, 9:27 AM
  4. How to handle data processing in Ext.grid.EditorGrid?
    By willydee in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 18 Jun 2007, 1:46 AM
  5. YUI reset-fonts-grids-min.css breaks yiu-ext grids
    By Wolfgang in forum Ext 1.x: Bugs
    Replies: 15
    Last Post: 16 May 2007, 7:20 AM

Posting Permissions

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