J
JohnE
I have a gridview that is inside an update panel. In the gridview there is a
date field. In the Update mode, a calendar extender is used for a calendar
extender (the full template source below). Simple, effective, and very user
friendly when the update panel is not used.
<asp:TemplateField HeaderText="Target End Date"
SortExpression="DevTargetEndDate">
<ItemTemplate>
<asp:Label ID="lblDevTargetEndDate"
runat="server" Text='<%# Bind("DevTargetEndDate", "{0:M-d-yyyy}")
%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDevTargetEndDate"
runat="server" Text='<%# Bind("DevTargetEndDate", "{0:M-d-yyyy}")
%>'></asp:TextBox>
<cc1:CalendarExtender ID="calDevTargetEndDate"
runat="server" TargetControlID="txtDevTargetEndDate"
Format="M/d/yyyy"
CssClass="ListEdit_theme1" >
</cc1:CalendarExtender>
</EditItemTemplate>
</asp:TemplateField>
When the update panel is used, the calendar is smaller, cramped looking, and
not very user friendly. How the update panel and calendar able to co-exist
together on the same gridview, properly?
Thanks...John
date field. In the Update mode, a calendar extender is used for a calendar
extender (the full template source below). Simple, effective, and very user
friendly when the update panel is not used.
<asp:TemplateField HeaderText="Target End Date"
SortExpression="DevTargetEndDate">
<ItemTemplate>
<asp:Label ID="lblDevTargetEndDate"
runat="server" Text='<%# Bind("DevTargetEndDate", "{0:M-d-yyyy}")
%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDevTargetEndDate"
runat="server" Text='<%# Bind("DevTargetEndDate", "{0:M-d-yyyy}")
%>'></asp:TextBox>
<cc1:CalendarExtender ID="calDevTargetEndDate"
runat="server" TargetControlID="txtDevTargetEndDate"
Format="M/d/yyyy"
CssClass="ListEdit_theme1" >
</cc1:CalendarExtender>
</EditItemTemplate>
</asp:TemplateField>
When the update panel is used, the calendar is smaller, cramped looking, and
not very user friendly. How the update panel and calendar able to co-exist
together on the same gridview, properly?
Thanks...John