View Full Version : Grid column sorting

1 Dec 2011, 1:38 PM

Is there a way I can sort a grid column based on its value returned from renderer function instead of its actual value? For example: data for Column 'A' is either 0/1. I use a renderer function on that column that converts 0 to start and 1 to end. When I try to sort column A by ascending order, it sorts by the int values and hence returns start before end. Is there a way I can manipulate the code such that when I sort column A, it shows end before start?

Thanks for any help.

2 Dec 2011, 11:35 AM
No... the sorting happens within the Store and has no knowledge of the column renderer. THe only way to do this is to add a convert method to your fields.