I recently stumbled upon the following issue: For an editable grid (I tested both form edit and inline edit modes), if you pass a select control a value list with only numeric storage values, jqGrid automatically re-sorts the list by the storage values when it converts the values to a dropdown.
For example, if I include the following value list in the editoptions for a select column:
value:{“”:””,”8″:”ACME Inc.”,”3″:”Basic, LLC”,”7″:”Large Corp”,”2″:”Simple Organization”,”4″:”Testing Organization”}
I expect to get the following select list:
Instead, I get this:
Is there any way to turn off this auto-sorting behavior? I would like to be able to display values from the database in alphabetical order while storing their IDs.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top