Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Im trying to get the source nodes which are generated by the xpath used on a multinode picker, I'm using the DataTypeService which is fine for returning pre-values but I cant see a way to get the nodes which are selelcted using the xpath.
Im bascially after the nodes which would be shown on the left side in the CMS when using the MNP, not the selected nodes.
I can get the pre-values which actually shows portions of the xpath in the array but no decent way to evaluate and get a node list.
DataTypeService dts = new DataTypeService();
Guid mnpDataTypeId = new Guid("7e062c13-7c41-4ad9-b389-41d88aeef87c"); //the datatypeId of all multinode pickers
foreach (var type in content.PropertyTypes)
if (type.DataTypeId == mnpDataTypeId)
var preValues = dts.GetPreValuesCollectionByDataTypeId(type.DataTypeDefinitionId);
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted