Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make CalendarExtender show in front of ModalPopupExtender?

Tags:

asp.net

How to make CalendarExtender, extending TextBox placed inside ModalPopupExtender, to show in front of ModalPopupExtender ?

like image 439
dzolnjan Avatar asked Dec 04 '25 00:12

dzolnjan


2 Answers

Add this bit of javascript to your page:

    function calendarShown(sender, args)
    {
        sender._popupBehavior._element.style.zIndex = 10005;
    }

And then in the attributes for your calendar extender, add:

OnClientShown="calendarShown"
like image 120
kevev22 Avatar answered Dec 05 '25 15:12

kevev22


My solution is in CSS:

.ajax__calendar_container
{
    position: relative;
}
like image 34
dimator Avatar answered Dec 05 '25 16:12

dimator



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!