1
votes

I have a column- Company in ExtJs gridPanel.

In the backend I have put a condition -

{id:'Company',header: "Company",  sortable: true, dataIndex: 'comp', 
     renderer: function(value, cell) {
   if(status='unemployed') 
      {  return 'n/a';}
}

Now,If the column has values like 'Apple' ,'Google','n/a','Microsoft', It is not sorting it in proper order. How should I handle 'n/a' while sorting?

1
Sorting does it before render, so you should handle 'unemployed'. This just a side note.Thevs

1 Answers

0
votes

I'd suggest to use just blank value for the n/a case. It would appear on the top of the list. You can also to put a space before 'n', like ' n/a'.