开发者

extjs group by letter

开发者 https://www.devze.com 2023-01-27 05:21 出处:网络
does anyone knows how to use extjs\'s groupingview and group by the first开发者_JS百科 letter of the particular field indicated by the groupingStore?

does anyone knows how to use extjs's groupingview and group by the first开发者_JS百科 letter of the particular field indicated by the groupingStore?

For instance:

group 'l':
record with field 'lion'
record with field 'leopard'

group 'g':
record with field 'giraffe'


ok i got it. Basically I need to edit the grid column's groupRenderer :

groupRenderer:function(v,u,r,rowIndex,colIndex,js){
            return r.get('fieldname').charAt(0);
        },
0

精彩评论

暂无评论...
验证码 换一张
取 消