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

Defining custom template outside the event

1 Answer 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
developer
Top achievements
Rank 1
developer asked on 02 Aug 2016, 03:58 AM

I want to achieve the functionality in which the numbers needs to be displayed outside the event template but within the date.

Please find the screen shots of the requirement.

Here is the event template that I have used.

<script id="event-template" type="text/x-kendo-template">   
  60-50-30
    <div style="background-color: #: kendo.toString(colorId, "hh:mm") #">
         <p class="bold">
           <span class="bold"> #: kendo.toString(title) # </span>
            <span class="bold pull-right">   #: kendo.toString(trip.length) # Trips    </<span>
        </p>     
        <h3 style="background-color: #: kendo.toString(colorId, "hh:mm") #"> </h3>
     </div>  
</script>

Can you please help me on this..

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 04 Aug 2016, 08:27 AM
Hi Vijay,

Please accept my apology for the delay.

From the screenshots provided, I assume that your requirement is to have a Kendo UI Scheduler day template with a views type set to month. I would suggest using the views dayTemplate configuration setting: 

http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#configuration-views.dayTemplate

Since the Kendo UI Scheduler renders the slots before the events, you will have access to the current date and the resources. To display the required aggregates from the events for each day, calculate them programmatically according to the custom needs and logic in your requirement and pass them to the template. 

Regards,
Alex
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Scheduler
Asked by
developer
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or