Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > updatepanel, gridview, calendar

Reply
Thread Tools

updatepanel, gridview, calendar

 
 
JohnE
Guest
Posts: n/a
 
      03-10-2010
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


 
Reply With Quote
 
 
 
 
Andy O'Neill
Guest
Posts: n/a
 
      03-10-2010

"JohnE" <> wrote in message
news:EC6789B4-45E2-4FCB-A082-...
<<>>
> 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?


I've not fully explored it myself, but I heard the updatepanel can't cope
with templated controls.
If you google on "gridview updatepanel problem" you will see a stack of
hits.

Ajax is nice when it just works, not so nice when it doesn't.
I moved onto silverlight.

 
Reply With Quote
 
 
 
 
SOURAV DEY
Guest
Posts: n/a
 
      03-10-2010
On Mar 10, 10:16*am, JohnE <Jo...@discussions.microsoft.com> wrote:
> 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




Hi John,

Check whether your gridview is within some div or span or panel. If
your griview is inside these type of placeholders then put it outside
of that and try.
Let me know the result.

 
Reply With Quote
 
JohnE
Guest
Posts: n/a
 
      03-10-2010
The gridview is inside the update panel so it does not go blank or flicker
when controls are used. The calendar extender is in a templated field of the
gridview.
When the update panel is not used, all works and looks just fine.



"SOURAV DEY" wrote:

> On Mar 10, 10:16 am, JohnE <Jo...@discussions.microsoft.com> wrote:
> > 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

>
>
>
> Hi John,
>
> Check whether your gridview is within some div or span or panel. If
> your griview is inside these type of placeholders then put it outside
> of that and try.
> Let me know the result.
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar GadGets does not show calendar iccsi Windows 64bit 4 08-14-2011 01:52 PM
How to Synchronise Hotmail Calendar with Standard Outlook Calendar using Outlook Connector ?? Synapse Syndrome Computer Support 0 12-02-2007 04:19 AM
Thunderbird Calendar with Exchange 2003 Calendar and Public FoldersCalendar jincmcse Firefox 1 09-03-2005 02:46 AM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net 3 06-23-2004 01:41 PM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net Web Controls 0 06-23-2004 12:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57