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

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControlAdditionalRendering
ファイルを表示 Open project: NewSpring/Rock Class Usage Examples

Private Properties

Property Type Description
PopulateDropDowns void

Public Methods

Method Description
CalculateDateRangeFromDelimitedValues ( string value ) : DateRange

Calculates the date range from delimited values in format SlidingDateRangeType|Number|TimeUnitType|StartDate|EndDate NOTE: The Displayed End Date is one day before the actual end date. So, if your date range is displayed as 1/3/2015 to 1/4/2015, this will return 1/5/2015 12:00 AM as the End Date

FormatDelimitedValues ( string value ) : string

Formats the delimited values as a phrase such as "Last 14 Days"

GetHelpHtml ( System.DateTime currentDateTime ) : string

Gets the help HTML that explains usage of the SlidingDateRange picker with examples

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

Renders content after the label.

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

Renders the base control.

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.

SetDateRangeModeValue ( DateRange value ) : void

Sets the date range mode value.

SlidingDateRangePicker ( ) : System

Initializes a new instance of the SlidingDateRangePicker class.

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.

RegisterJavaScript ( ) : void

Registers the java script.

ddl_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the dropdown list controls.

Private Methods

Method Description
PopulateDropDowns ( ) : void

Populates the drop downs.

Method Details

CalculateDateRangeFromDelimitedValues() public static method

Calculates the date range from delimited values in format SlidingDateRangeType|Number|TimeUnitType|StartDate|EndDate NOTE: The Displayed End Date is one day before the actual end date. So, if your date range is displayed as 1/3/2015 to 1/4/2015, this will return 1/5/2015 12:00 AM as the End Date
public static CalculateDateRangeFromDelimitedValues ( string value ) : DateRange
value string The value.
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

FormatDelimitedValues() public static method

Formats the delimited values as a phrase such as "Last 14 Days"
public static FormatDelimitedValues ( string value ) : string
value string The value.
return string

GetHelpHtml() public static method

Gets the help HTML that explains usage of the SlidingDateRange picker with examples
public static GetHelpHtml ( System.DateTime currentDateTime ) : string
currentDateTime System.DateTime The current date time.
return string

RegisterJavaScript() protected method

Registers the java script.
protected RegisterJavaScript ( ) : void
return void

RenderAfterLabel() public method

Renders content after the label.
public RenderAfterLabel ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
return void

RenderBaseControl() public method

Renders the base control.
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

SetDateRangeModeValue() public method

Sets the date range mode value.
public SetDateRangeModeValue ( DateRange value ) : void
value DateRange The value.
return void

SlidingDateRangePicker() public method

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

ddl_SelectedIndexChanged() protected method

Handles the SelectedIndexChanged event of the dropdown list controls.
protected ddl_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void