Multiple ResourceHeaderTemplates in Scheduler

2 posts, 0 answers
  1. Michael
    Michael avatar
    5 posts
    Member since:
    Sep 2013

    Posted 28 Oct 2013 Link to this post


    I was wondering if it's possible to have multiple ResourceHeaderTemplates in a Scheduler and let the correct one be chosen based on the Resource's Resource Type? I'd like to do it in markup if that is possible. 
    Something like (this is not valid markup):

        <ResourceHeaderTemplate ResourceType="1">
            <div class="rsMainHeader" style="text-align: left;" >
                <a href="<%# Eval("Url") %>" ><%# Eval("Text") %></a>
                <label id="projectLeaderLabel" runat="server" ></label>
                <label id="participantsLabel" runat="server" ></label>
        <ResourceHeaderTemplate ResourceType="2">
            <div class="rsMainHeader" style="text-align: left;" >
                <%# Eval("Text") %>
  2. Bozhidar
    Bozhidar avatar
    1095 posts

    Posted 31 Oct 2013 Link to this post

    Hi Michael,

    The functionality as you are describing it in not supported by RadScheduler. You can however use the OnResourceHeaderCreated event to customize the template based on the resource that triggered the event. The following demo demonstrates how this approach is used to load a different picture for each resource:


    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.

Back to Top