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

Inheritance: System.Web.UI.WebControls.PlaceHolder, INamingContainer
Show file Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
DeleteUserPreferences ( ) : void

Deletes the user preferences.

GetUserPreference ( string key ) : string

Gets the user preference for a given key if it exists

GridFilter ( ) : System

Initializes a new instance of the GridFilter class.

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.

SaveUserPreference ( string key, string value ) : void

Adds or updates an item in the User Preferences dictionary

SaveUserPreference ( string key, string name, string value ) : void

Adds or updates an item in the User Preferences dictionary

Show ( ) : void

Shows the filter in expanded mode

Protected Methods

Method Description
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.

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

Outputs the content of a server control's children to a provided T:System.Web.UI.HtmlTextWriter object, which writes the content to be rendered on the client.

lbClearFilter_Click ( object sender, EventArgs e ) : void

Handles the Click event of the _lbClearFilter control.

lbFilter_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbFilter control.

Private Methods

Method Description
RegisterJavaScript ( ) : void

Registers the java script.

SaveUserPreferences ( ) : void

Saves the user preferences.

Method Details

CreateChildControls() protected method

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
return void

DeleteUserPreferences() public method

Deletes the user preferences.
public DeleteUserPreferences ( ) : void
return void

GetUserPreference() public method

Gets the user preference for a given key if it exists
public GetUserPreference ( string key ) : string
key string The key.
return string

GridFilter() public method

Initializes a new instance of the GridFilter class.
public GridFilter ( ) : System
return System

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

RenderChildren() protected method

Outputs the content of a server control's children to a provided T:System.Web.UI.HtmlTextWriter object, which writes the content to be rendered on the client.
protected RenderChildren ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the rendered content.
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

SaveUserPreference() public method

Adds or updates an item in the User Preferences dictionary
public SaveUserPreference ( string key, string value ) : void
key string The key.
value string The value.
return void

SaveUserPreference() public method

Adds or updates an item in the User Preferences dictionary
public SaveUserPreference ( string key, string name, string value ) : void
key string The key.
name string The name.
value string The value.
return void

Show() public method

Shows the filter in expanded mode
public Show ( ) : void
return void

lbClearFilter_Click() protected method

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

lbFilter_Click() protected method

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