Hi,
I'd like to know if it's possible to change the background colour of the "Resource Header Template" in Timeline view if grouped by Resource. I'd like to be able to set the colour on a per resource basis (e.g. making use of the ResourceHeaderCreated).
I've used the following to change the contents of the text within column headers, but haven't had much luck setting background colour yet...
Example:
Two resources - Tim and Bob. Tim's resource background is Blue, Bob's is green.
Code so far (see 'green' div background that needs to be settable)
<telerik:RadScheduler ID="RadScheduler1" runat="server"
GroupBy="Room"
onresourceheadercreated="RadScheduler1_ResourceHeaderCreated">
<ResourceHeaderTemplate>
<div style="background:green">
<asp:Label ID="ResourceLabel" runat="server" Text="Label"></asp:Label>
</div>
</ResourceHeaderTemplate>
</telerik:RadScheduler>
I'd like to know if it's possible to change the background colour of the "Resource Header Template" in Timeline view if grouped by Resource. I'd like to be able to set the colour on a per resource basis (e.g. making use of the ResourceHeaderCreated).
I've used the following to change the contents of the text within column headers, but haven't had much luck setting background colour yet...
Example:
Two resources - Tim and Bob. Tim's resource background is Blue, Bob's is green.
Code so far (see 'green' div background that needs to be settable)
<telerik:RadScheduler ID="RadScheduler1" runat="server"
GroupBy="Room"
onresourceheadercreated="RadScheduler1_ResourceHeaderCreated">
<ResourceHeaderTemplate>
<div style="background:green">
<asp:Label ID="ResourceLabel" runat="server" Text="Label"></asp:Label>
</div>
</ResourceHeaderTemplate>
</telerik:RadScheduler>
protected void RadScheduler1_ResourceHeaderCreated(object sender,
Telerik.Web.UI.ResourceHeaderCreatedEventArgs
e)
{
((Label)e.Container.FindControl("ResourceLabel")).Text = e.Container.Resource.Text;
}
Cheers,
Paul
{
((Label)e.Container.FindControl("ResourceLabel")).Text = e.Container.Resource.Text;
}
Cheers,
Paul