in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Is it possible to use asp:UpdatePanel inside EditForm Template??

Last post 11/26/2008 11:16 PM by Mehul Harry (Developer Express). 9 replies.
Page 1 of 1 (10 items)
Sort Posts:
Previous Next
  • 10/16/2008 3:03 AM

    Is it possible to use asp:UpdatePanel inside EditForm Template??

    Hi Support Team,

         Is it possible to use UpdatePanel inside EditForm Template? I've tried to wrap the whole EditForm Content inside UpdatePanel but I encountered two problems:

        1)  ValidationSettings-ValidationGroup='<%#Container.ValidationGroup%>' can't be used.

        2)  My custom buttons inside the EditForm cause full postback.

        It's pretty urgent and I appreciate you all in advance!

    Regards,

    Thurein

     

     

     

    Regards,

    Thurein

  • 10/16/2008 11:19 AM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Why not just wrap the grid in an update panel? That will take care of anything
    in the Grid.


    Brien King
    President, ClassicSoft, LLC
    http://www.classicsoft.com
    brien@classicsoft.com
    Developers Helping Developers!

    KT> Hi Support Team,
    KT>
    KT> Is it possible to use UpdatePanel inside EditForm Template?
    KT> I've tried to wrap the whole EditForm Content inside UpdatePanel but
    KT> I encountered two problems:
    KT>
    KT> 1)
    KT> ValidationSettings-ValidationGroup=''
    KT> can't be used.
    KT>
    KT> 2) My custom buttons inside the EditForm cause full postback.
    KT>
    KT> It's pretty urgent and I appreciate you all in advance!
    KT>
    KT> Regards,
    KT>
    KT> Thurein
    KT>
    KT> Regards,
    KT>
    KT> Thurein
    KT>
  • 10/16/2008 11:42 AM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    When grid is inside UpdatePanel, I think all grid's html layout will be sent over the wire every time. The author, as I understand, wants to exchange only edit frame between client and server, when editing.

    May be interesting for some situations (ex. large complex grid); I'm waiting for support team reply too, to see if it makes difference or not.....

  • 10/16/2008 10:00 PM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Hi Brien King,

            Thanks for your reply. In fact, I just want to update the edit form content only instead of re-rendering the whole gridview.


    Hi Roman Bazylevych,

            Thanks for your reply also. You just hit the nail on the head. What you just mentioned is exactly what I want.

    Regards,

    Thurein

  • 10/17/2008 8:14 AM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

     Why cant you just let aspxgridview handle the callbacks for you? I do have the same problem, and I do use UpdatePanel to wrap my aspxgridview, but that is for a specific reason -> I have to use ajaxtoolkit, in that way I must set EnableCallBack to false. I dont know if thats your case...

  • 10/18/2008 11:17 PM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Hi Raul Tortima,

           Let me reveal my case. I have some reason to place a button which has a server-side click event inside the EditForm template. When the user click on that button, server-side click event is fired and some textboxes inside the EditForm are populated with the values retrieved from a data source.

           If I wrap the whole aspxgridview inside UpdatePanel, the whole gridview is refreshed and consequently, the popup EditForm suddenly disappears and reappears again which is not desirable.

    Regards,

    Thurein

     

  • 10/20/2008 4:26 AM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Hello!

    The same situation here.  I need to change the Text of some Lables inside the Edit Form according to the selected Value of a comboBox for example. Is that possible?

    I´m using a template for my edit form. I can register for the Init Event of the Combo inside my template, and tried to register for the "onselectedindexchanged" event too, but it does not fire until the edit form is closed.

    Any Ideas?

     <Templates>
                    <EditForm >
                        <asp:Table ID="Table1" runat="server">
                            <asp:TableRow>
                                <asp:TableCell>
                                    <dxe:ASPxLabel ID="ASPxLabel2" Text="TransferMode" Width="50" runat="server" />
                                </asp:TableCell>
                                <asp:TableCell>
                                    <dxe:ASPxComboBox OnInit="comboTransferModeInit" onselectedindexchanged="comboTransferModeInit_SelectedIndexChanged" ID="combo_transferMode"
                                     runat="server" Value='<%# Bind("TransferMode") %>'
                                        ValueType="System.String" >
                                    </dxe:ASPxComboBox>

     [...]

     

  • 11/10/2008 11:14 AM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Did you ever Get a Response on how to fix the issue

  • 11/19/2008 8:47 PM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Hi Ken,

             Sorry for my late reply. I still haven't got any response on how to fix the issue.

    Regards,

    Thurein

  • 11/26/2008 11:16 PM In reply to

    Re: Is it possible to use asp:UpdatePanel inside EditForm Template??

    Hello Kyaw,

    You don't need an update panel with the ASPxGridView. 

    Take a look at this sample that update the editform editor:

    http://www.devexpress.com/Support/Center/e/E491.aspx 

Page 1 of 1 (10 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED