I'm using custom background color codes in my event template as shown below..
<
script
id
=
"event-template"
type
=
"text/x-kendo-template"
>
<
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
>
But the space is occupied by only a portion in kendo event.Please find the screen shot..
The JSON for binding the event is given below..
[
{
"id": 1,
"name": "Sand",
"start": "/Date(1470024001000)/",
"end": "/Date(1470038400000)/",
"colorId": "#90CAF9",
"status": "Delivered",
"client": "Foyer"
},
{
"id": 1,
"name": "Gravel",
"start": "/Date(1470110401000)/",
"end": "/Date(1470124800000)/",
"colorId": "#CE93D8",
"status": "Dispatched",
"client": "Foyer"
},
{
"id": 1,
"name": "Aggregate 20 mm",
"start": "/Date(1470024001000)/",
"end": "/Date(1470038400000)/",
"colorId": "#9FA8DA",
"status": "Delivered",
"client": "Foyer"
}
]
Please let me know where I'm doing wrong..