0

How can we change the order(to Alphabetical order) of Renderings in the "Select a Rendering" dialog box?

We have tried extending the SelectRenderingForm class which returns no renderings in the dialog box. "None available" message is showing on the "Select a Rendering" dialog box.

enter image description here

Your help would be much appreciated

2 Answers 2

0

Rendering Item -> Sorting -> Subitems Sorting

enter image description here

Then in the dialog box that opens up, there are various options among which Default or Display Name should help you to sort in alphabetical order

enter image description here

1
  • This is not working. we need to sort the renderings by alphabetical order in the "Select a Rendering" dialog box which appears on the experience editor mode.
    – Jero
    Commented Jul 20, 2023 at 11:54
0

I found that this is working if we are extending the SelectRenderingForm class. The problem that I am facing now is, SelectRenderingOptions model is not returning the list of rendering items to be appeared in the "Select a Rendering" dialog when we override the OnLoad method on the extension/derived class.

But, If we put below line in the very beginning of the OnLoad method then it is working as expected. SelectRenderingOptions selectRenderingOptions = SelectItemOptions.Parse<SelectRenderingOptions>();

Instead of keeping next to the following line: IsOpenPropertiesChecked = Registry.GetBool("/Current_User/SelectRendering/IsOpenPropertiesChecked");

If anyone know other solution, please let me know!

enter image description here

Expected result: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.