2010-11-26 3 views
1

누구나 extjs의 groupingview 및 그룹을 groupingStore가 나타내는 특정 필드의 첫 번째 문자로 사용하는 방법을 알고 있습니까? 예를 들어extjs 편지 by

는 :

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

group 'g': 
record with field 'giraffe' 

답변

4

확인 나는 그것을 얻었다. 기본적으로 그리드 열의 groupRenderer를 편집해야합니다.

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

답변을 추가해 주셔서 감사합니다. +1 – SW4