jQuery UI Widgets Forums Lists ComboBox Change the order of a jqxComboBox

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Change the order of a jqxComboBox #104475

    Kxorro
    Participant

    I have a jqxComboBox with Values:

    Id Abbreviation

    1 BS
    2 EPM
    3 ODD
    4 OF
    5 OPT
    6 SR
    9 LAN
    10 ATP

    Order them by Id by default, I need to be ordered by the column abbreviation, because is that I show.

    Change the order of a jqxComboBox #104517

    Hristo
    Participant

    Hello Kxorro,

    There is no such built-in option to have sorted items in the jqxComboBox.
    You could use the jqxDataAdapter to sort the records via beforeLoadComplete callback.
    Please, take a look at this example:

    var dataAdapter = new $.jqx.dataAdapter(source, {
    	beforeLoadComplete: function (records) {
    		// implement sorting logic here that modifies records array
    		return records;
    	}
    });

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.