WELL!! I managed to totally hack this together to work. what I did was drop a user control into the eventview page, then used reflection to navigate back through the eventview to get the item id. once I got that i just needed to use the event manager to grab the event by the content item id!!
then I just find the hyperlink control I added to the same eventview page and modify it to link to the handler with the event id. TOTALLY WORKS!!
here's the code behind for the user control:
| using System; |
| using System.Collections.Generic; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Telerik.Events; |
| using Telerik.Events.WebControls; |
| |
| public partial class UserControls_Internal_CalendarReminder : System.Web.UI.UserControl |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| EventsView view = Parent.Parent.Parent as EventsView; |
| HyperLink lnk = Parent.FindControl("CalendarReminder") as HyperLink; |
| EventsManager mgr = new EventsManager("Events"); |
| IEvent ev = mgr.GetEventByContentId(view.SelectedItemId); |
| lnk.NavigateUrl = string.Format("~/EventReminder.ashx?id={0}", ev.ID); |
| lnk.Text = "Save To Outlook Calendar"; |
| } |
| } |
| |
I can see potentional for all kinds of customization of the content view now that I've found a way to get in there! but are there any dangers to accessing the content this way?
screen cap of examplei don't have a live example to show because we're waiting for the new 3.5 sitefinity release to upload all new updates...
hope this was helpful!