Options Sort Order in Dropdowns in Admin Menu


Is there any way to fix sort order of options in dropdowns? For example, role list is out of order on a new user creation page.

Jul 05, 2022 14:38


Do you mean ordering a <select> markup that's binded to an instance that implements IEnumerable?

Sure just reorder the list and then bind it to your view model.

Something with the effect of:

Model.RoleList = unorderedRoleList.OrderBy(x => x.Name).ToList()

(If you mean instead as en editor property when editing a page then the principle applies for the selection factory.)

Jul 05, 2022 19:32
klappo - Jul 06, 2022 7:40
Thanks, but I would guess the solution if it was a custom page. I was talking about system page, where admins create users
Surjit Bharath - Jul 06, 2022 13:07
Ah apologies. You probably could by getting the aspx package from one of the episerver ui packages and then modifying the code behind.


Yes, you can change the order of dropdown in the admin panel but for that, you need to change things in its core page i.e. aspx files. You can find those in  UI package of episevrer.

Jul 14, 2022 7:11

seems like there is no way around here

Jul 20, 2022 7:41
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.