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

Hide Times Header in custom TimelineMonthView

3 Answers 258 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 Feb 2017, 03:57 PM

I have a custom (based on one of your examples) TimelineMonthView with a list of rooms down the left side.  The top rows are the dates, and under that are the times, which all just say 12:00 AM.  How can I completely hide this row of times?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 27 Feb 2017, 08:57 AM
Hello David,

Here's a sample dojo, which demonstrates how to hide the time header (see the Scheduler's dataBinding event handler).

Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
David
Top achievements
Rank 1
answered on 27 Feb 2017, 03:40 PM

Thank you, that worked, though I needed to remove the view.times.hide() nline because that removed all of my resources on my y-axis.

One question, though:  Where would I have been able to look up the structure of the Scheduler to be able to drill down to

$( ".k-scheduler-header-wrap > table > tbody > tr:eq(1)" ).hide();

?

Thanks!

0
Accepted
Ivan Danchev
Telerik team
answered on 01 Mar 2017, 03:02 PM
Hello David,

We recommend inspecting the rendered elements in the browser's developer tools, as shown in this screenshot. This will allow you to get the class of a specific element that interests you (k-scheduler-table for instance) with regard to applying custom styles. The Scheduler renders a complex hierarchy of elements and in the documentation we haven't included a detailed scheme that shows all those elements and their respective classes.
 
Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
David
Top achievements
Rank 1
Share this question
or