# Open RadzenDatePicker from another Button or component

**URL:** <https://forum.radzen.com/t/open-radzendatepicker-from-another-button-or-component/21526>\
**Category:** Radzen.Blazor Components\
**Created:** [April 28, 2026, 1:53pm UTC](https://forum.radzen.com/t/open-radzendatepicker-from-another-button-or-component/21526 "2026-04-28T13:53:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cab507](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@cab507](https://forum.radzen.com/u/cab507)\
**Post date:** [April 28, 2026, 1:53pm UTC](https://forum.radzen.com/t/open-radzendatepicker-from-another-button-or-component/21526/1 "2026-04-28T13:53:41Z")

</div>

Hi,

Is it possible to open a RadzenDatePicker from another component other than the RadzenDatePicker?

I want to display the selected date next to the datepicker and allow the user to click on the datepicker or in any part of the element where the date is displayed. (It is easier to target the mouse over a bigger area than only on the datepicker icon). ( Like this image: ![image](https://forum.radzen.com/uploads/default/original/3X/e/5/e54bfd643628b4b00b33b8f41d493108053d2073.png))

I have search all documentation but not found a way to open the datepicker from another element (Like for example on a click on the label next to my datepicker or click on another custom Button). Is this possible?

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [April 28, 2026, 1:58pm UTC](https://forum.radzen.com/t/open-radzendatepicker-from-another-button-or-component/21526/2 "2026-04-28T13:58:54Z")

</div>

The only option at the moment is:

```auto
<button @onclick="OpenPicker">@selectedDate.ToShortDateString()</button>

<RadzenDatePicker @bind-Value=@selectedDate id="hiddenPicker" Style="display:none" />

@code {
    DateTime selectedDate = DateTime.Today;
    [Inject] IJSRuntime JS { get; set; }

    async Task OpenPicker()
    {
        await JS.InvokeVoidAsync("eval",
            "document.querySelector('#hiddenPicker .rz-datepicker-trigger').click()");
    }
}

```

---

<div class="post-metadata">

**Author:** ![cab507](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@cab507](https://forum.radzen.com/u/cab507)\
**Post date:** [April 28, 2026, 2:33pm UTC](https://forum.radzen.com/t/open-radzendatepicker-from-another-button-or-component/21526/3 "2026-04-28T14:33:37Z")

</div>

It works perfect; thanks !

---

<div class="post-metadata">

**Author:** ![cab507](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@cab507](https://forum.radzen.com/u/cab507)\
**Post date:** [September 14, 2026, 4:40pm UTC](https://forum.radzen.com/t/open-radzendatepicker-from-another-button-or-component/21526/4 "2026-09-14T16:40:05Z")

</div>

Hi,

I updated my Radzen version (to 11.4.0) after a long time and now the JS code provided in the previous post does not toggle the Date Picker open/close. Replacing the use of the click event with a the mouse down event makes it work again.

```csharp
await JS.InvokeVoidAsync("eval",
            "document.querySelector('#hiddenPicker .rz-datepicker-trigger')?.dispatchEvent(new MouseEvent('mousedown', {bubbles: true, cancelable: true}));");

```

I just wanted to post this code in case anyone needs the same functionality.
