1

I know that Treelist and Checklist fields are of Type MultilistField in C#, but I need to know the C# types for the following field types:

  • TreelistEx
  • Multilist
  • MultilistWithSearch
4

Below are the C# types of the List Type field:

Checklist:

Sitecore.Data.Fields.MultilistField

Droplist:

Sitecore.Data.Fields.ValueLookupField

Grouped Droplink:

Sitecore.Data.Fields.GroupedDroplinkField

Grouped Droplist:

Sitecore.Data.Fields.GroupedDroplistField

Multilist:

Sitecore.Data.Fields.MultilistField

Multilist with Search:

Sitecore.Data.Fields.MultilistField

Name Lookup Value List:

Sitecore.Data.Fields.NameValueListField

Name Value List:

Sitecore.Data.Fields.NameValueListField

Treelist:

Sitecore.Data.Fields.MultilistField

TreelistEx:

Sitecore.Data.Fields.MultilistField
0

To use these fields in code, you have to add reference to Sitecore.Kernel dll and then you can use it. For example

MultilistField itemsInMultiList = dataSourceItem.Fields["SelctedTags"];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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