1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    7
    Vote Rating
    0
    ivanmayes is on a distinguished road

      0  

    Default Change Headers on a grouped List?

    Change Headers on a grouped List?


    Is there anything built in to change what the headers display on a grouped list?

    For Example, instead of displaying A,B,C it would display the year or a category that the list was sorted by?

    Thanks for the help!

  2. #2
    Ext User mikeyroy's Avatar
    Join Date
    Jul 2010
    Location
    San Francisco
    Posts
    101
    Vote Rating
    0
    mikeyroy is on a distinguished road

      0  

    Default


    This uses the entire string for the group header:
    Code:
    	getGroupString : function(record) {
    		return record.get('header');
    	}
    This grabs only the first letter:
    Code:
    	getGroupString : function(record) {
    		return record.get('header')[0];
    	}
    I've had issues with sorting & grouping with numbers & special characters, so YMMV on sorting by year.

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    7
    Vote Rating
    0
    ivanmayes is on a distinguished road

      0  

    Default


    Duh, was totally overlooking that. Thanks for your help!

Similar Threads

  1. GroupHeaderGrid - Grouped grid column headers
    By Condor in forum Ext 3.x: User Extensions and Plugins
    Replies: 90
    Last Post: 10 Jul 2013, 8:34 PM
  2. blank rows on grouped list updated with JSON data
    By samuelp in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 13 Sep 2010, 3:53 PM
  3. EXTJS 3.1 TreeGrid - Grouped Column Headers
    By raposo_c in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 4 Jan 2010, 2:03 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar