C# Class RockWeb.Blocks.Core.DefinedValueList

Inheritance: Rock.Web.UI.RockBlock, ISecondaryBlock
Datei anzeigen Open project: CentralAZ/Rockit-CentralAZ

Public Methods

Method Description
SetVisible ( bool visible ) : void

Sets the visible.

ShowDetail ( ) : void

Shows the detail.

Protected Methods

Method Description
AddAttributeColumns ( ) : void

Binds the defined values grid.

BindDefinedValuesGrid ( ) : void

Binds the defined values grid.

Block_BlockUpdated ( object sender, EventArgs e ) : void

Handles the BlockUpdated event of the control.

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.

btnSaveValue_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSaveDefinedValue control.

gDefinedValues_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gDefinedValues control.

gDefinedValues_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gDefinedValues control.

gDefinedValues_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gDefinedValues control.

gDefinedValues_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gDefinedValues control.

gDefinedValues_ShowEdit ( int valueId ) : void

Shows the edit value.

Private Methods

Method Description
InitForDefinedType ( ) : int

Initialize items for the grid based on the configured or given defined type.

ShowAttributeValueEdit ( int valueId, bool setValues ) : void
gDefinedValues_GridReorder ( object sender, Rock.Web.UI.Controls.GridReorderEventArgs e ) : void

Handles the GridReorder event of the gDefinedValues control.

Method Details

AddAttributeColumns() protected method

Binds the defined values grid.
protected AddAttributeColumns ( ) : void
return void

BindDefinedValuesGrid() protected method

Binds the defined values grid.
protected BindDefinedValuesGrid ( ) : void
return void

Block_BlockUpdated() protected method

Handles the BlockUpdated event of the control.
protected Block_BlockUpdated ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

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

SetVisible() public method

Sets the visible.
public SetVisible ( bool visible ) : void
visible bool if set to true [visible].
return void

ShowDetail() public method

Shows the detail.
public ShowDetail ( ) : void
return void

btnSaveValue_Click() protected method

Handles the Click event of the btnSaveDefinedValue control.
protected btnSaveValue_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gDefinedValues_Add() protected method

Handles the Add event of the gDefinedValues control.
protected gDefinedValues_Add ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gDefinedValues_Delete() protected method

Handles the Delete event of the gDefinedValues control.
protected gDefinedValues_Delete ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.RowEventArgs The instance containing the event data.
return void

gDefinedValues_Edit() protected method

Handles the Edit event of the gDefinedValues control.
protected gDefinedValues_Edit ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.RowEventArgs The instance containing the event data.
return void

gDefinedValues_GridRebind() protected method

Handles the GridRebind event of the gDefinedValues control.
protected gDefinedValues_GridRebind ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gDefinedValues_ShowEdit() protected method

Shows the edit value.
protected gDefinedValues_ShowEdit ( int valueId ) : void
valueId int The value id.
return void