Results 1 to 2 of 2

Thread: Grid column sorting

  1. #1

    Question Grid column sorting

    Hello,

    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. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    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.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •