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;}
|
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!
|
Rank: Newbie Groups: Member
Joined: 9/10/2013 Posts: 2
|
Works great! Thank you. :d/
|