Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Recurrence EventTemplate

$
0
0

Fixed it:

<script id="event-template" type="text/x-kendo-template">
    #if(start >= new Date()){#
        <div style='background-color: blue'>

     #}else{#
            # if (ProcedureCode == null) {#
        <div style='background-color: gray'>
            #}else{#
            <div style='background-color: darkgreen'>
                #}#
                #}#
                <span>#= title #</span>
            </div>
</script>

 

But if the event length is longer than the title, it shows the default background.


Viewing all articles
Browse latest Browse all 84751

Latest Images

Trending Articles



Latest Images