This is a migrated thread and some comments may be shown as answers.

Set DropDown Width

2 Answers 786 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Cameron
Top achievements
Rank 1
Cameron asked on 26 Feb 2021, 04:16 PM

Is there a way to set the size of the dropdown for the datetime picker? I have complaints from users where when they are changing between different months and the position of the arrows move due to different lengths of month names. This causes them to accidently click the "Today" button and lose their selection. Any help is appreciated.

 

2 Answers, 1 is accepted

Sort by
1
Accepted
Marin Bratanov
Telerik team
answered on 26 Feb 2021, 04:20 PM

Hi Cameron,

You can use the PopupWidth and PopupHeight parameters, for example:

 

<TelerikDatePicker @bind-Value="@TheDate" PopupWidth="400px"></TelerikDatePicker>
@code{
    DateTime TheDate { get; set; } = DateTime.Now;
}

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Cameron
Top achievements
Rank 1
answered on 26 Feb 2021, 04:46 PM

Marin,

Thanks for the quick and helpful response, as always! Missed that on the docs page the first time, but I see it now.

Tags
DateTimePicker
Asked by
Cameron
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Cameron
Top achievements
Rank 1
Share this question
or