jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList jqxDropDownList | Prevent Default Sorting

This topic contains 3 replies, has 2 voices, and was last updated by  raj 9 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • raj
    Participant

    Hi Folks,

    I’m binding the JSON data into jqxDropDownList and by default the list is getting sorted. I want to prevent the default sorting taking care by the jqx component.

    For example: It’s a currency dropdown, and I want few currencies to be at the top like USD, SGD, AUD etc.

    In accordance to that I’m building my JSON in that order to show few items at the top but jqx component is sorting that into alphabetical order. Because of that my preferred list is going down and scattered

    I want the data to be binded in whatever the order that i’m sending from server-side.

    Can someone suggest me a solution on how to achieve this?

    Looking forward.

    Regards,
    Raj


    raj
    Participant

    Hi,

    Can somebody from jqxWidgets team reply to my post?

    Looking forward.

    Regards,
    Raj


    Dimitar
    Participant

    Hi Raj,

    jqxDropDownList does not have a default sorting functionality (as shown by this example: https://www.jseditor.io/?key=jqxdropdownlist-no-sorting). Maybe the data is sorted by your server-side code? You can check the received JSON data in the data adapter’s loadComplete callback.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    raj
    Participant

    Hi Dimitar,

    Thanks for your reply.

    I had written some global sorting logic for list items; it’s my mistake. 🙂

    Regards,
    Raj

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

You must be logged in to reply to this topic.