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

Hide 'Start' and 'End' labels

3 Answers 107 Views
DateRangePicker
This is a migrated thread and some comments may be shown as answers.
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
DoomerDGR8 asked on 31 Jan 2021, 08:38 AM

Hi!

Is there a way to disable/hide the labels for start and end? I'm having issues fitting this control in another vendor's Form Layout.

3 Answers, 1 is accepted

Sort by
0
Nadezhda Tacheva
Telerik team
answered on 03 Feb 2021, 01:14 PM

Hi Hassan,

You can hide the Start and End labels of the DateRangePicker with some custom CSS. The labels have .k-label class which you can use to access and hide them.

To better illustrate how to achieve that, I've created this knowledge base article for hiding the DateRangePicker labels.

Speaking of finding elements in the DOM, you might find helpful this article for improving your debugging skills.

Regards,
Nadezhda Tacheva
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
Hassan
Top achievements
Rank 2
answered on 12 Feb 2021, 10:30 AM
Thanks for the reply and the dedicated article. I was not able to have the labels hidden though. Is this workaround theme dependent?
0
Nadezhda Tacheva
Telerik team
answered on 15 Feb 2021, 05:13 PM

Hi Hassan,

Generally speaking the theme you are using should not affect the styles that you are additionally applying.

One possible reason for the described behavior could be if you are using some other styling that overrides the one responsible for hiding the labels (that could be for example due to a stronger selector).

You could try checking what styles are computed on the .k-label element through the debugger tools and investigate where do they come from.

If this does not help, you can send us a runnable example where the issue is reproduced, so we can look further and provide a solution.

Regards,
Nadezhda Tacheva
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/.

Tags
DateRangePicker
Asked by
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nadezhda Tacheva
Telerik team
Hassan
Top achievements
Rank 2
Share this question
or