Welcome Guest Search | Active Topics | Sign In | Register

Example for setting the Calendar.FooterTemplate Property Options
SpartaSixZero
Posted: Tuesday, September 10, 2013 8:36:34 AM
Rank: Newbie
Groups: Member

Joined: 9/10/2013
Posts: 2
Hi, I'm looking at the following documentation on the Calendar.FooterTemplate Property. http://www.essentialobjects.com/doc/1/eo.web.calendar.footertemplate.aspx

My goal is to use C# to dynamically set the format for the today variable in the footer. Can someone provide me with an example of how to actually set the FooterTemplate using the property?

public ClientTemplate FooterTemplate {get; set;}
eo_support
Posted: Tuesday, September 10, 2013 10:03:08 AM
Rank: Administration
Groups: Administration

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

You would do something like this:

Code: C#
EO.Web.ClientTemplate t = new EO.Web.ClientTemplate();
t.Text = "<div>....{var:today:MM/dd/yyyy} ......</div>";
Calendar1.FooterTemplate = t;


Thanks!
SpartaSixZero
Posted: Tuesday, September 10, 2013 10:22:36 AM
Rank: Newbie
Groups: Member

Joined: 9/10/2013
Posts: 2
Works great! Thank you. :d/


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.