Ticket Q253712
Visible to All Users

ASPxGridView - How to refresh a master grid when updating a detail grid

created 15 years ago

Hi…
How can I refresh the master aspxgrid when you modify the aspxgrid that is in the detail?
thanks
Rolando

Show previous comments (5)

    the solution is good
    but when the CellEditorInitialize event exits this fire manytimes (page_load too) this dont stop to stack overflow
    helpme please

    Serge (DevExpress Support) 15 years ago

      Hi Rolando,
      This sounds rather odd. Could you please provide a sample illustrating this side-effect? I will try to figure out what's wrong.
      Thanks,
      Serge

        the example…
        when i press new in the grid inside the detailrow
        thanks

        Answers approved by DevExpress Support

        created 15 years ago (modified 11 years ago)

        Hi Rolando,
        Thanks for the project. I've reproduced your issue. The circularity occurs because you call the Refresh method in the EndCallback event handler. In this case after a roundtrip to the server, the EndCallback event is raised, you again send processing to the server, the EndCallback is raised again and so on…
        To overcame this behavior, use some flag. For example:

        ASPx
        <ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/>
        JavaScript
        var command = ""; function OnBeginCallback(s, e) { command = e.command; } function OnEndCallback(s, e) { if (command == "ADDNEWROW") { s.Refresh(); } }

        Thanks,
        Marion

          Show previous comments (7)
          DevExpress Support Team 15 years ago

            Rolando,
            Thank you for informing us that the problem has been resolved.
            If you need any further assistance on this subject, please feel free to ask us.
            Regards

              last question
              when is validating anf fire
              the e.RowError appear and gone (same problen whit unchequed)
              my question is who is the command to rowvalidating?

              DevExpress Support Team 15 years ago

                Hello Rolando,
                The ASPxGridView.RowValidating event is raised when a control with the CausesValidation property is clicked. By default, the Update button's CausesValidation property is set to true. You can set this property manually as you want.
                Thanks,
                Marion

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.