View Source
  Class MultipleValueEditor
  
  A value editor to handle posted json array data and to return array data for the multiple selected csv items
    Inheritance
      System.Object
      
      
   
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public class MultipleValueEditor : DataValueEditor, IDataValueEditor
   
  
  
  Constructors
  
  
    View Source
  
  MultipleValueEditor(ILocalizedTextService, IShortStringHelper, IJsonSerializer, IIOHelper, DataEditorAttribute)
  
  
  Declaration
  
    public MultipleValueEditor(ILocalizedTextService localizedTextService, IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper, DataEditorAttribute attribute)
   
  Parameters
  
  Methods
  
  
    View Source
  
  FromEditor(ContentPropertyData, Object)
  When multiple values are selected a json array will be posted back so we need to format for storage in
the database which is a comma separated string value
Declaration
  
    public override object FromEditor(ContentPropertyData editorValue, object currentValue)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Object |  | 
    
  
  
    View Source
  
  ToEditor(IProperty, String, String)
  Override so that we can return an array to the editor for multi-select values
Declaration
  
    public override object ToEditor(IProperty property, string culture = null, string segment = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IProperty | property |  | 
      
        | System.String | culture |  | 
      
        | System.String | segment |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Object |  |