我有一列Company
在ExtJs gridPanel。Extjs grid sorting
在后台我已经把一个条件 -
{id:'Company',header: "Company", sortable: true, dataIndex: 'comp',
renderer: function(value, cell) {
if(status='unemployed')
{ return 'n/a';}
}
现在,如果列有像'Apple'
,'Google'
,'n/a'
,'Microsoft'
,它不以正确的顺序排序它的值。排序时应该如何处理'n/a'
?
排序是在渲染前完成的,所以你应该处理'失业'。这只是一个方面的说明。 – Thevs 2013-02-27 08:10:59