Results 1 to 3 of 3

Thread: Ext Direct + Grid filter example: How to clear sort?

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    462
    Answers
    5
    Vote Rating
    39
      0  

    Default Ext Direct + Grid filter example: How to clear sort?

    Building on the grid-filter example using ExtDirect.

    The "clear filters" button wipes out the filters, but leave whatever column sorts were in place.

    Code:
    {
       text: 'Clear Filter Data',
       handler: function () {
         grid.filters.clearFilters();
         // Here, want to reset all columns to be unsorted 
       } 
    }
    ... where do I start looking to empty the filters of sort info?

    I don't know what gets flipped when a user clicks on a sortable column header.

    I see ways to remove the ability to sort. But not to just revert to unsorted for all columns.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,383
    Answers
    3997
    Vote Rating
    1537
      0  

    Default

    Is this using the filters feature or just having plain filters on a store?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    462
    Answers
    5
    Vote Rating
    39
      0  

    Default

    http://docs.sencha.com/ext-js/4-0/#!...ter-local.html

    Code:
    var grid = Ext.create('Ext.grid.Panel', {
      border: false,         
     store: store,         
    columns: createColumns(4),         
    loadMask: true,        
     features: [filters],
    ...

Posting Permissions

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