开发者

extjs group by letter

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜