Welcome Guest Search | Active Topics | Sign In | Register

DatePicker Footer Template Restrictions? Options
Sean Clark
Posted: Friday, April 26, 2013 4:02:22 AM
Rank: Advanced Member
Groups: Member

Joined: 12/24/2008
Posts: 43
Hi

I am struggling to get anything to appear in the footer of a datepicker control...

Here is the code:

<eo:DatePicker ID="EODateTimePicker" runat="server" ControlSkinID="None"
DayCellHeight="15" DayCellWidth="31" DayHeaderFormat="Short" DisabledDates=""
OtherMonthDayVisible="True" PickerFormat="dd/MM/yyyy HH:mm:ss"
SelectedDates="" TitleFormat="MMMM, yyyy"
TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" AllowMultiSelect="False"
TitleRightArrowImageUrl="DefaultSubMenuIcon" VisibleDate="2011-03-01"
PopupExpandDirection="Auto" AutoPostbackOnScroll="True" AutoPostbackOnSelect="True" EnableKeyboardNavigation="true" MonthColumns="3" >
<PickerStyle CssText="font-family:Arial;font-size:9pt" />
<CalendarStyle CssText="background-color:white;border-bottom-color:Silver;border-bottom-style:solid;border-bottom-width:1px;border-left-color:Silver;border-left-style:solid;border-left-width:1px;border-right-color:Silver;border-right-style:solid;border-right-width:1px;border-top-color:Silver;border-top-style:solid;border-top-width:1px;color:#2C0B1E;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
<TitleStyle CssText="font-family:Arial;font-size:9pt;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
<TitleArrowStyle CssText="cursor: hand;" />
<MonthStyle CssText="cursor:hand;margin-bottom:0px;margin-left:4px;margin-right:4px;margin-top:0px;" />
<DayHeaderStyle CssText="font-family:Arial;font-size:9pt;border-bottom: #f5f5f5 1px solid;" />
<DayStyle CssText="font-family:Arial;font-size:9pt;" />
<DayHoverStyle CssText="font-family:Arial;font-size:9pt;background-image:url('00040402');color:#1c7cdc;" />
<TodayStyle CssText="font-family:Arial;font-size:9pt;background-image:url('00040401');color:#1176db;" />
<SelectedDayStyle CssText="font-family:Arial;font-size:9pt;background-image:url('00040403');color:Brown;" />
<DisabledDayStyle CssText="font-family:Arial;font-size:9pt;color: gray;" />
<FooterTemplate Visible="True">
<div>
<table border="0" cellpadding="0" cellspacing="5" style="font-size: 11px; font-family: Arial">
<tr>
<td width="30">
</td>
<td valign="middle">
<img src="{img:00040401}" alt="" />
</td>
<td valign="middle">
Today: {var:today:MM/dd/yyyy}
</td>
</tr>
<tr>
<td colspan="3">
<asp:LinkButton ID="Lnk_Min" runat="server" Text="Clear" Visible="True"></asp:LinkButton>
<asp:LinkButton ID="Lnk_Now" runat="server" Text="Now" Visible="True"></asp:LinkButton>
<asp:LinkButton ID="Lnk_Max" runat="server" Text="Max" Visible="True"></asp:LinkButton>
</td>
</tr>
</table>
</div>
</FooterTemplate>
</eo:DatePicker>

When I view the simple test page with only this control the picker works fine, its just there is nothing rendered in the footer of the pop up.

Strange thing is when I use the design time editor and try to edit the footer in the calendar builder, only the following rows of HTML are shown in the pop up:

</td>
</tr>
</table>
</div>

Is there something wrong with the content in my footer or is there a bug in the control?

Kind Regards
Sean
eo_support
Posted: Friday, April 26, 2013 8:52:35 AM
Rank: Administration
Groups: Administration

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

FooterTemplate is a "client template". It does not support server controls.

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.