C# Класс Rock.Web.UI.Controls.SlidingDateRangePicker

Наследование: System.Web.UI.WebControls.CompositeControl, IRockControlAdditionalRendering
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
PopulateDropDowns void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
PopulateDropDowns ( ) : void

Populates the drop downs.

Описание методов

CalculateDateRangeFromDelimitedValues() публичный статический Метод

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.
Результат DateRange

CreateChildControls() защищенный Метод

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
Результат void

FormatDelimitedValues() публичный статический Метод

Formats the delimited values as a phrase such as "Last 14 Days"
public static FormatDelimitedValues ( string value ) : string
value string The value.
Результат string

GetHelpHtml() публичный статический Метод

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.
Результат string

RegisterJavaScript() защищенный Метод

Registers the java script.
protected RegisterJavaScript ( ) : void
Результат void

RenderAfterLabel() публичный Метод

Renders content after the label.
public RenderAfterLabel ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Результат void

RenderBaseControl() публичный Метод

Renders the base control.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Результат void

RenderControl() публичный Метод

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.
Результат void

SetDateRangeModeValue() публичный Метод

Sets the date range mode value.
public SetDateRangeModeValue ( DateRange value ) : void
value DateRange The value.
Результат void

SlidingDateRangePicker() публичный Метод

Initializes a new instance of the SlidingDateRangePicker class.
public SlidingDateRangePicker ( ) : System
Результат System

ddl_SelectedIndexChanged() защищенный Метод

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.
Результат void