【发布时间】:2013-02-12 16:37:51
【问题描述】:
我在 ExtJs gridPanel 中有一个专栏 - Company。
在后端我设置了一个条件 -
{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'?
【问题讨论】:
-
排序是在渲染之前完成的,所以你应该处理“失业”。这只是一个旁注。