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

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControlAdditionalRendering
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Private Properties

Свойство Type Description
PopulateDropDowns void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
PopulateDropDowns ( ) : void

Populates the drop downs.

Method Details

CalculateDateRangeFromDelimitedValues() public static méthode

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.
Résultat DateRange

CreateChildControls() protected méthode

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
Résultat void

FormatDelimitedValues() public static méthode

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

GetHelpHtml() public static méthode

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.
Résultat string

RegisterJavaScript() protected méthode

Registers the java script.
protected RegisterJavaScript ( ) : void
Résultat void

RenderAfterLabel() public méthode

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

RenderBaseControl() public méthode

Renders the base control.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Résultat void

RenderControl() public méthode

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.
Résultat void

SetDateRangeModeValue() public méthode

Sets the date range mode value.
public SetDateRangeModeValue ( DateRange value ) : void
value DateRange The value.
Résultat void

SlidingDateRangePicker() public méthode

Initializes a new instance of the SlidingDateRangePicker class.
public SlidingDateRangePicker ( ) : System
Résultat System

ddl_SelectedIndexChanged() protected méthode

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.
Résultat void