Options Sort Order in Dropdowns in Admin Menu

Vote:
 

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.

#283176
Jul 05, 2022 14:38
Vote:
 

Hi,

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.)

#283181
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.
Vote:
 

Hi,

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.

#283673
Jul 14, 2022 7:11
Vote:
 

seems like there is no way around here

#283985
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.