C# Class RockWeb.Blocks.Prayer.PrayerRequestList

Inheritance: Rock.Web.UI.RockBlock
Show file Open project: CentralAZ/Rockit-CentralAZ

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

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

OnLoad ( EventArgs e ) : void

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

gPrayerRequests_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gPrayerRequests control.

gPrayerRequests_CheckChanged ( object sender, RowEventArgs e ) : void

Handles the CheckChanged event of the gPrayerRequests IsApproved field.

gPrayerRequests_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gPrayerRequests control.

gPrayerRequests_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gPrayerRequests control.

gPrayerRequests_RowDataBound ( object sender, System.Web.UI.WebControls.GridViewRowEventArgs e ) : void

Handles disabling the Toggle fields if the user does not have Approval rights.

gfFilter_ApplyFilterClick ( object sender, EventArgs e ) : void

Handles the Apply Filter event for the GridFilter

gfFilter_DisplayFilterValue ( object sender, GridFilter e ) : void

Handles displaying the stored filter values.

Private Methods

Method Description
BindFilter ( ) : void

Binds any needed data to the Grid Filter also using the user's stored preferences.

BindGrid ( ) : void

Binds the grid to a list of Prayer Requests.

DeleteAllRelatedNotes ( PrayerRequest prayerRequest ) : void

Deletes all related notes.

gPrayerRequests_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gPrayerRequests control.

Method Details

OnInit() protected method

Handles 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

Handles 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

gPrayerRequests_Add() protected method

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

gPrayerRequests_CheckChanged() protected method

Handles the CheckChanged event of the gPrayerRequests IsApproved field.
protected gPrayerRequests_CheckChanged ( 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

gPrayerRequests_Delete() protected method

Handles the Delete event of the gPrayerRequests control.
protected gPrayerRequests_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

gPrayerRequests_Edit() protected method

Handles the Edit event of the gPrayerRequests control.
protected gPrayerRequests_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

gPrayerRequests_RowDataBound() protected method

Handles disabling the Toggle fields if the user does not have Approval rights.
protected gPrayerRequests_RowDataBound ( object sender, System.Web.UI.WebControls.GridViewRowEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.GridViewRowEventArgs The instance containing the event data.
return void

gfFilter_ApplyFilterClick() protected method

Handles the Apply Filter event for the GridFilter
protected gfFilter_ApplyFilterClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

gfFilter_DisplayFilterValue() protected method

Handles displaying the stored filter values.
protected gfFilter_DisplayFilterValue ( object sender, GridFilter e ) : void
sender object The sender.
e Rock.Web.UI.Controls.GridFilter The e as DisplayFilterValueArgs (hint: e.Key and e.Value).
return void