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

How do I format the date filter field?

1 Answer 159 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ray
Top achievements
Rank 1
Ray asked on 15 Jul 2020, 02:46 AM

Hi,

I have a date filter field but due to the width of the filter cell, the placeholder "dd/mm/yyyy" is truncated. Is there any way to format this date filter cell so that 

1) I can word wrap the placeholder to fully display it?

2) Or I can increate the width of the filter cell so that I can display the entire "dd/mm/yyyy"?

 

Best Regards,

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 Jul 2020, 10:59 AM

Hello Ray,

As the DatePicker component uses a native input internally, so wrapping the placeholder text on multiple lines is not an option. This is due to HTML specifics - inputs can contain only single line texts. Also, there is no mechanism to change the rendering of the built-in DatePicker filter cell to display a textarea or a contenteditable div.

The best option you have is to set a width of the column that will fit the place holder. Here's an example.

Let me know if that would work for you.

Regards,
Dimitar
Progress Telerik

Tags
General Discussions
Asked by
Ray
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or