New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Server-side events Overview
The RadDateRangePicker controls expose the following server-side event:
- RangeSelectionChanged occurs after a Postback, when the value of the control has been changed.
To achieve AutoPostBack behavior with the RadDateRangePicker, you can use the client-side DateSelected event to trigger a postback for submitting the changes to the server-side. Otherwise the RangeSelectionChanged event will be triggered after a postback initiated by another postback control (e.g. Submit button):
JavaScript
function OnDateSelected(sender, args) {
// trigger a postback when both start and end dates are selected
if (sender.get_rangeSelectionStartDate() && sender.get_rangeSelectionEndDate()) {
args.set_shouldPostBack(true);
}
}
See live sample of handling the server event in our Server-side events demo