Welcome Guest Search | Active Topics | Sign In | Register

Use of EO DayRender Method? Options
webmaker
Posted: Friday, August 1, 2008 1:58:55 PM
Rank: Newbie
Groups: Member

Joined: 9/29/2007
Posts: 2
Regarding EO calendar control:

If one chooses the scheduler template, can one place into a date cell one or more hyperlinks using the DayRender event? If so, how? (Please refer me to sample code using this control.)

The following code works when using a ASP.Net calendar control, but not when using a EO calendar control. (I get the compile error: 'Cell' is not a member of 'EO.Web.DayRenderEventArgs')

Protected Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As EO.Web.DayRenderEventArgs) Handles Calendar1.DayRender
Dim onmouseoverStyle As String = "this.style.backgroundColor='#D4EDFF'"
Dim onmouseoutStyle As String = "this.style.backgroundColor='@BackColor'"
Dim rowBackColor As String = String.Empty

e.Cell.Attributes.Add("onmouseover", onmouseoverStyle)
e.Cell.Attributes.Add("onmouseout", onmouseoutStyle.Replace("@BackColor", rowBackColor))

If Not e.Day.IsWeekend Then
e.Cell.Attributes.Add("onmouseover", onmouseoverStyle)
e.Cell.Attributes.Add("onmouseout", onmouseoutStyle.Replace("@BackColor", rowBackColor))
End If
End Sub

The second line of my markup page is:
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>

Thanks,
eo_support
Posted: Friday, August 1, 2008 2:10:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi,

You will want to take a look of the reference section in the documentation --- that would clearly tell you what's there and what's not there.

The source code of this sample should also help you to understand how it works with our Calendar control:

http://www.essentialobjects.com/Demo/Default.aspx?path=Calendar\_i1\scheduler

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.