New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Displaying RadDatePicker Dropdown Popup in AjaxControlToolkit ModalPopup Window

Updated over 1 year ago

Environment

PropertyValue
ProductRadDatePicker for ASP.NET AJAX
Versionall

Description

When using an AjaxControlToolkit modalpopup window, the RadDatePicker dropdown popup may not be displayed correctly due to its lower z-index.

Solution

To address this issue and ensure that the RadDatePicker dropdown popup is displayed correctly within the AjaxControlToolkit modalpopup window, you can follow these steps:

  1. Add the following JavaScript code to your page:
javascript
function popupOpening(sender, args) {
    var popup = args.get_popupControl();
    setTimeout(function () {
        popup.get_element().parentElement.style.setProperty('z-index', '103000', 'important');
    });
}
  1. Modify your RadDatePicker control by adding the OnPopupOpening attribute and set it to the popupOpening JavaScript function:
markup
<telerik:RadDatePicker RenderMode="Lightweight" ID="RadDatePicker2" runat="server">
    <ClientEvents OnPopupOpening="popupOpening" />
</telerik:RadDatePicker>
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support