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

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControl
Mostra file Open project: SparkDevNetwork/Rock Class Usage Examples

Private Properties

Property Type Description
RegisterJavaScript void

Public Methods

Method Description
CalculateDateRangeFromDelimitedValues ( string delimitedValues ) : DateRange

Calculates the date range from delimited values.

DateRangePicker ( ) : System

Initializes a new instance of the DateRangePicker class.

FormatDelimitedValues ( string value ) : string

Formats the delimited values for display purposes

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.

TryParse ( string delimited, System.DateTime &lower, System.DateTime &upper ) : bool

Tries to parse the upper and lower DateTime from the delimited string

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.

Private Methods

Method Description
RegisterJavaScript ( ) : void

Registers the java script.

Method Details

CalculateDateRangeFromDelimitedValues() public static method

Calculates the date range from delimited values.
public static CalculateDateRangeFromDelimitedValues ( string delimitedValues ) : DateRange
delimitedValues string The delimited values.
return DateRange

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

DateRangePicker() public method

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

FormatDelimitedValues() public static method

Formats the delimited values for display purposes
public static FormatDelimitedValues ( string value ) : string
value string The value.
return string

RenderBaseControl() public method

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

TryParse() public static method

Tries to parse the upper and lower DateTime from the delimited string
public static TryParse ( string delimited, System.DateTime &lower, System.DateTime &upper ) : bool
delimited string The delimited value
lower System.DateTime The lower value
upper System.DateTime The upper value
return bool