Sort a column of combo box (es) or dropdownlists

Sort a column of combo box (es) or dropdownlists

JamesHJamesH Posts: 1Questions: 0Answers: 0
edited March 2010 in General
I'm sure there are better ways to do this, but I needed something quickly. Thought I would post in case someone wanted to do the same

My combo boxes has 3 values - Hold, Quote, and No value. The combo selector allows the user to change the value which is a redirect to another page, but the problem it presented was how to sort on this column?

Heres how you would add the code to the page...




/*Define a custom cell type for the dropdownlists, works in conjuction with the custom sorting functions afterwards. What determines if column is a combo box? '

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I think you could use live DOM sorting for this, like shown in this example: http://datatables.net/examples/plug-ins/dom_sort.html . Might be a bit more of a direct approach, but thanks for posting this - interesting idea.

    Allan
This discussion has been closed.