C# Class Rock.Web.UI.Controls.MergeFieldPicker

Inheritance: ItemPicker
Show file Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
FormatSelectedValue ( string selectedValue ) : string

Formats the selected value (node path) into a liquid merge field.

RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

SetValue ( string nodePath ) : void

Sets the value.

SetValues ( IEnumerable nodePaths ) : void

Sets the values.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

SetValueOnSelect ( ) : void

Sets the value on select.

SetValuesOnSelect ( ) : void

Sets the values on select.

Private Methods

Method Description
GetPrefixedMergeFieldIds ( ) : List

Gets the prefixed merge field ids.

Method Details

FormatSelectedValue() public static method

Formats the selected value (node path) into a liquid merge field.
public static FormatSelectedValue ( string selectedValue ) : string
selectedValue string The selected value.
return string

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

RenderControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void

SetValue() public method

Sets the value.
public SetValue ( string nodePath ) : void
nodePath string The node path.
return void

SetValueOnSelect() protected method

Sets the value on select.
protected SetValueOnSelect ( ) : void
return void

SetValues() public method

Sets the values.
public SetValues ( IEnumerable nodePaths ) : void
nodePaths IEnumerable The node paths.
return void

SetValuesOnSelect() protected method

Sets the values on select.
protected SetValuesOnSelect ( ) : void
return void