C# Class RockWeb.Blocks.Cms.ContentChannelView

Inheritance: Rock.Web.UI.RockBlockCustomSettings
Show file Open project: SparkDevNetwork/Rock

Public Methods

Method Description
ShowEdit ( ) : void

Shows the edit.

Protected Methods

Method Description
LoadViewState ( object savedState ) : void

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.

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.

SaveViewState ( ) : object

Saves any user control view-state changes that have occurred since the last page postback.

ShowSettings ( ) : void

Shows the settings.

ddlChannel_SelectedIndexChanged ( object sender, EventArgs e ) : void
filterControl_DeleteClick ( object sender, EventArgs e ) : void

Handles the DeleteClick event of the filterControl control.

groupControl_AddFilterClick ( object sender, EventArgs e ) : void

Handles the AddFilterClick event of the groupControl control.

groupControl_AddGroupClick ( object sender, EventArgs e ) : void

Handles the AddGroupClick event of the groupControl control.

groupControl_DeleteGroupClick ( object sender, EventArgs e ) : void

Handles the DeleteGroupClick event of the groupControl control.

lbSave_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
ContentDynamic_BlockUpdated ( object sender, EventArgs e ) : void
CreateFilterControl ( ContentChannel channel, DataViewFilter filter, bool setSelection, RockContext rockContext ) : void

Creates the filter control.

CreateFilterControl ( Control parentControl, DataViewFilter filter, bool setSelection, RockContext rockContext ) : void

Creates the filter control.

DeleteDataViewFilter ( DataViewFilter dataViewFilter, DataViewFilterService service ) : void
GetContent ( List errorMessages ) : List
GetFilterControl ( ) : DataViewFilter
GetFilterControl ( Control control ) : DataViewFilter
GetFilterFieldControl ( FilterField filterField ) : DataViewFilter
GetFilterGroupControl ( FilterGroup filterGroup ) : DataViewFilter
GetMetaValueFromAttribute ( string input, List content ) : string
GetTemplate ( ) : Template
HackEntityFields ( ContentChannel channel, RockContext rockContext ) : List

The PropertyFilter checks for it's property/attribute list in a cached items object before recreating them using reflection and loading of generic attributes. Because of this, we're going to load them here and exclude some properties and add additional attributes specific to the channel type, and then save list to same cached object so that property filter lists our collection of properties/attributes instead.

SetListValue ( ListControl listControl, string value ) : void

Sets the list value.

SetNewDataFilterGuids ( DataViewFilter dataViewFilter ) : void
ShowView ( ) : void

Binds the grid.

btnTrigger_Click ( object sender, EventArgs e ) : void

Method Details

LoadViewState() protected method

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An that represents the user control state to be restored.
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

SaveViewState() protected method

Saves any user control view-state changes that have occurred since the last page postback.
protected SaveViewState ( ) : object
return object

ShowEdit() public method

Shows the edit.
public ShowEdit ( ) : void
return void

ShowSettings() protected method

Shows the settings.
protected ShowSettings ( ) : void
return void

ddlChannel_SelectedIndexChanged() protected method

protected ddlChannel_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

filterControl_DeleteClick() protected method

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

groupControl_AddFilterClick() protected method

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

groupControl_AddGroupClick() protected method

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

groupControl_DeleteGroupClick() protected method

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

lbSave_Click() protected method

protected lbSave_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void