Skip to content

Commit

Permalink
docs(daterangepicker): update server-side api
Browse files Browse the repository at this point in the history
  • Loading branch information
pepinho24 committed Sep 14, 2021
1 parent b5c33e2 commit 7dc44ef
Show file tree
Hide file tree
Showing 4 changed files with 505 additions and 0 deletions.
51 changes: 51 additions & 0 deletions api/server/Telerik.Web.UI.Calendar/DateRangePickerClientEvents.md
@@ -0,0 +1,51 @@
---
title: Telerik.Web.UI.Calendar.DateRangePickerClientEvents
page_title: Telerik.Web.UI.Calendar.DateRangePickerClientEvents
description: Telerik.Web.UI.Calendar.DateRangePickerClientEvents
---

# Telerik.Web.UI.Calendar.DateRangePickerClientEvents

Summary description for DatePickerClientEvents.
See http://docs.telerik.com/devtools/aspnet-ajax/controls/daterangepicker/client-side-programming/events/overview.html Client Eventsfor more information.

## Inheritance Hierarchy

* System.Object
* Telerik.Web.UI.ObjectWithState
* Telerik.Web.UI.Calendar.DateRangePickerClientEvents

## Properties

### OnDateSelected `String`

Gets or sets the name of the client-side event handler that is executed whenever
the selected date of the datepicker is changed.

### OnPopupClosing `String`

Gets or sets the name of the client-side event handler that is executed prior to
closing the calendar popup.

#### Remarks
There can be some conditions you do want not to close the calendar popup on
click over it. Then you should cancel the event either by return false; or
set its argument args.CancelClose = true;
<script type="text/javascript">function Closing(sender, args){ args.CancelClose = true; //or return false;}</script><radCln:RadDatePicker ID="RadDatePicker1" runat="server"> <ClientEvents OnPopupClosing="Closing"/></radCln:RadDatePicker>

### OnPopupOpening `String`

Gets or sets the name of the client-side event handler that is executed prior to
opening the calendar popup and its synchronizing with the DateInput value.

#### Remarks
There can be some conditions you do want not to open the calendar popup on
click of the popup button. Then you should cancel the event either by return
false; or set its argument args.CancelOpen = true;
<script type="text/javascript">function Opening(sender, args){ args.CancelOpen = true; //or return false;}</script><radCln:RadDatePicker ID="RadDatePicker1" runat="server"> <ClientEvents OnPopupOpening="Opening"/></radCln:RadDatePicker>
Set the args.CancelSynchronize = true; to override the default
DatePicker behavior of synchronizing the date in the DateInput and Calendar
controls. This is useful for focusing the Calendar control on a date different from
the DateInput one.
<script type="text/javascript">function Opening(sender, args){ args.CancelCalendarSynchronize = true; sender.Calendar.NavigateToDate([2006,12,19]);}</script><radCln:RadDatePicker ID="RadDatePicker1" runat="server" > <ClientEvents OnPopupOpening="Opening"/></radCln:RadDatePicker>

@@ -0,0 +1,26 @@
---
title: Telerik.Web.UI.Calendar.RangeSelectionChangedEventArgs
page_title: Telerik.Web.UI.Calendar.RangeSelectionChangedEventArgs
description: Telerik.Web.UI.Calendar.RangeSelectionChangedEventArgs
---

# Telerik.Web.UI.Calendar.RangeSelectionChangedEventArgs

Provides data for the RangeSelectionChanged event of the DateRangePicker control.

## Inheritance Hierarchy

* System.Object
* System.EventArgs
* Telerik.Web.UI.Calendar.RangeSelectionChangedEventArgs

## Properties

### EndDate `Nullable`1`

Gets the newly selected end date.

### StartDate `Nullable`1`

Gets the new selected start date.

4 changes: 4 additions & 0 deletions api/server/Telerik.Web.UI/RadCalendar.md
Expand Up @@ -591,6 +591,10 @@ Returns whether RadCalendar is currently in design mode.

For internal use.

### KeyboardNavigationSettings `KeyboardNavigationSettings`

Used to define keyboard shortcut to focus the RadCalendar's main table.

### LocalizationPath `CalendarStrings`

Gets or sets a value indicating where RadCalendar will look for its .resx localization file.
Expand Down

0 comments on commit 7dc44ef

Please sign in to comment.