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,
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
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\schedulerThanks!
|