ext:DateField in updatepanel

  1. #1

    ext:DateField in updatepanel

    Hi All,

    I know Updatepanel is quite a known issue.
    I hope someone can help me out?

    I am using ext Datefield in updatepanel.

    <ext:ResourceManager ID="ExtScriptManager1" runat="server" InitScriptMode="Linked">
    </ext:ResourceManager>
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>

    <asp:UpdatePanel ID="updpnlSubDateExpires" runat="server">
    <ContentTemplate>
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td>
    <ext:DateField runat="server" ID="cdeExpirationDateToAccumulate" Format="dd/MM/yyyy"
    MaxLength="10" Width="150px"></ext:DateField>
    </td>
    <td>
    <asp:TextBox runat="server" ID="tbTimeToAccumulate" CssClass="TextBoxNormalCoolite"
    MaxLength="5" Width="60px"></asp:TextBox>
    <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99:99" MaskType="Time"
    AcceptAMPM="false" TargetControlID="tbTimeToAccumulate">
    </cc1:MaskedEditExtender>

    </td>
    <td>
    <asp:Button runat="server" ID="btnAccumulateExpirationDates" CausesValidation="false"
    Text="Accumulate Expiration Dates" OnClick="btnAccumulateExpirationDates_Click" />

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

    </ContentTemplate>
    </asp:UpdatePanel>

    On server side.

    On click of button btnAccumulateExpirationDates_Click is fired.
    And i have some Database update.
    But my problem is after the click the ext:Datefield cdeExpirationDateToAccumulate disappears.
    Obivisouly asp:textbox tbTimeToAccumulate works fine and appears.

    I tried

    this.ExtScriptManager1.AddUpdatePanelToRefresh(upd pnlSubDateExpires);
    on my Page_Load();

    I would appreciate any help.

    Thanks

    Menon
    Last edited by mady1380; Nov 18, 2010 at 11:41 AM.

Similar Threads

  1. UpdatePanel
    By Timothy in forum Open Discussions
    Replies: 20
    Last Post: Feb 11, 2010, 10:23 AM
  2. UpdatePanel bug
    By SouthDeveloper in forum 1.x Help
    Replies: 1
    Last Post: Oct 23, 2009, 4:18 PM
  3. UpdatePanel
    By Timothy in forum Bugs
    Replies: 2
    Last Post: Mar 03, 2009, 8:48 AM
  4. UpdatePanel and FitLayout
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 06, 2008, 7:42 PM
  5. UpdatePanel in a BorderLayout
    By Dave.Sanders in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 02, 2008, 2:50 PM

Tags for this Thread

Posting Permissions