C# Класс Rock.Web.UI.Controls.ItemPicker

Наследование: System.Web.UI.WebControls.CompositeControl, IRockControl
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
ItemPicker ( ) : System

Initializes a new instance of the ItemPicker class.

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

This is where you implment the simple aspects of rendering your control. The rest will be handled by calling RenderControlHelper's RenderControl() method.

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.

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

Render any additional picker actions

SelectedValueAsId ( ) : int?

Returns the value of the currently selected item. It will return NULL if either T:Rock.Constants.None or T:Rock.Constants.All is selected. />

SelectedValueAsInt ( bool noneAsNull = true ) : int?

Gets the selected value as an integer, returning NULL if the selected value is "0"

SelectedValuesAsInt ( ) : IEnumerable

Selecteds the values as int.

SetValue ( int id ) : void

Sets the value.

SetValues ( IEnumerable ids ) : void

Sets the values.

ShowErrorMessage ( string errorMessage ) : void

Shows the error message.

Защищенные методы

Метод Описание
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

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.

RegisterJavaScript ( ) : void

Registers the java script.

SetValueOnSelect ( ) : void

Sets the value on select.

SetValuesOnSelect ( ) : void

Sets the values on select.

btnSelect_Click ( object sender, EventArgs e ) : void

Handles the Click event of the _btnSelect control.

Описание методов

CreateChildControls() защищенный Метод

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
Результат void

ItemPicker() публичный Метод

Initializes a new instance of the ItemPicker class.
public ItemPicker ( ) : System
Результат System

OnInit() защищенный Метод

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Результат void

OnLoad() защищенный Метод

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
Результат void

RegisterJavaScript() защищенный Метод

Registers the java script.
protected RegisterJavaScript ( ) : void
Результат void

RenderBaseControl() публичный Метод

This is where you implment the simple aspects of rendering your control. The rest will be handled by calling RenderControlHelper's RenderControl() method.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Результат void

RenderControl() публичный Метод

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.
Результат void

RenderCustomPickerActions() публичный Метод

Render any additional picker actions
public RenderCustomPickerActions ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Результат void

SelectedValueAsId() публичный Метод

Returns the value of the currently selected item. It will return NULL if either T:Rock.Constants.None or T:Rock.Constants.All is selected. />
public SelectedValueAsId ( ) : int?
Результат int?

SelectedValueAsInt() публичный Метод

Gets the selected value as an integer, returning NULL if the selected value is "0"
public SelectedValueAsInt ( bool noneAsNull = true ) : int?
noneAsNull bool if set to true [none as null].
Результат int?

SelectedValuesAsInt() публичный Метод

Selecteds the values as int.
public SelectedValuesAsInt ( ) : IEnumerable
Результат IEnumerable

SetValue() публичный Метод

Sets the value.
public SetValue ( int id ) : void
id int The id.
Результат void

SetValueOnSelect() защищенный абстрактный Метод

Sets the value on select.
protected abstract SetValueOnSelect ( ) : void
Результат void

SetValues() публичный Метод

Sets the values.
public SetValues ( IEnumerable ids ) : void
ids IEnumerable The ids.
Результат void

SetValuesOnSelect() защищенный абстрактный Метод

Sets the values on select.
protected abstract SetValuesOnSelect ( ) : void
Результат void

ShowErrorMessage() публичный Метод

Shows the error message.
public ShowErrorMessage ( string errorMessage ) : void
errorMessage string The error message.
Результат void

btnSelect_Click() защищенный Метод

Handles the Click event of the _btnSelect control.
protected btnSelect_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void