Results 1 to 2 of 2

Thread: Sort on ComboBox with custom renderer.

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    1

    Default Sort on ComboBox with custom renderer.

    I've got the following code generating a ComboBox with a custom renderer in a ColumnModel:

    Code:
    id: 'testType',
    header: "Type",
    width: 100,
    dataIndex: 'testType',
    editor: new Ext.form.ComboBox...,
    renderer: translate.curry('testType')
    Everything does work and it does show the correct ComboBoxes with the correct values in them.
    However, I can't find a way to sort the list in the ComboBox to sort alphabetic after the renderer. I how no idea on where to begin and how to do it. I cannot sort in the Combox's store as the sorting should happen after the renderer. ...and I've Googled around for about 2-3 hours now.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    The combobox will show what is in the store so you need to sort the store.
    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
  •