1

I'm working on Treelist field and have to select all children items at a time (like select all option) to selected list from Treelist (left to right window).

Is there any default option there or do we need to create new custom field?

1
  • Do you want always all children? Commented Jun 4, 2019 at 11:27

1 Answer 1

1

The default Treelist does not support selecting all children at the same time.

If you are going to create your own control, be mindful of the implications of selecting all of your children's nested children - they could amount to a large number of items. Perhaps your custom control could be configured to only "Select All" the 1st level children.

6
  • Thanks for your prompt response Emanuele. If I change the field type from Treelist to Multilist will it impact on any existing functionality? I hope Treelist and Multilist will store the id's with pipeline separated. Here Multilist field has default functionality with Select All and Deselect All options.
    – Ramesh Ch
    Commented Jun 4, 2019 at 10:41
  • 1
    Yes Multilist will work, and indeed it stores the selected items with a list of IDs separated with the pipeline - you can verify this by viewing the Raw Values. The only functionality you will lose is the ability to select the children's children, and potentially you will have to resort to Sitecore Query to populate your Multlist. Commented Jun 4, 2019 at 10:51
  • This is super help. Thank you.
    – Ramesh Ch
    Commented Jun 4, 2019 at 10:57
  • Glad to be of help. After you tried and verified it helped you, please consider accepting my answer. Commented Jun 4, 2019 at 11:18
  • Hi, did this work in the end? Commented Jun 7, 2019 at 17:35

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.