ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to preserve order of items in AjaxDropDown
Title:
B
I
{code}
?
The AjaxDropDown is parent to a grid. I need a default value to be selected in the dropdown at startup, problem is the default doesnt value have the lowest key and the dropdown seems to sort on key automatically
Save Changes
Cancel
Ratladi
asked at 22 May 2014
Answers
B
I
{code}
?
the order and selected value is set on the server and you have complete control over it, you are returning a json made of IEnumerable<SelectableItem> if none of the SelectableItem has Selected = true the first will be autoselected by the html select
Save Changes
Cancel
Omu
answered at 23 May 2014
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK