Bug Report B19277
Visible to All Users

Templates - It is impossible to access a control located in the column's EditItemTemplate in "PopupEditForm" editing mode

created 17 years ago

Steps to Reproduce:

  1. Open the attached web site;
  2. Set a breakpoint at the ASPxGridView1.RowValidating event handler;
  3. Run the project;
  4. Invoke the edit form;
  5. Click the "Update" button
    Actual Results:
    In this situation, both FindEditFormTemplateControl and FindEditRowCellTemplateControl methods return null (Nothing)
Show previous comments (1)
Andrew (DevExpress) 17 years ago

    Hi,
    You have to use the FindEditRowCellTemplateControl method. Here is the working example:
     Protected Sub ASPxGridView1_RowValidating(ByVal sender As Object, ByVal e As DevExpress.Web.Data.ASPxDataValidationEventArgs) Handles ASPxGridView1.RowValidating
          Dim Cbo As DevExpress.Web.ASPxEditors.ASPxComboBox = TryCast(ASPxGridView1.FindEditRowCellTemplateControl(ASPxGridView1.Columns("CategoryID"), "ASPxComboBox1"), DevExpress.Web.ASPxEditors.ASPxComboBox)
     End Sub
    Thank you,
    Andrew .Net R&D.

    DevExpress Support Team 17 years ago

      Dear Gabriel,
      We've examined this issue in more detail, and confirm that the problem exists. So, we've reactivated this bug report, and will continue working on this problem.
      We apologize foe the confusion.
      Thanks,
      Vito

      Andrew (DevExpress) 17 years ago

        Yes, indeed the FindEditRowCellTemplateControl method works incorrect for PopupEditForm.
        It is fixed now.
        Thank you,
        Andrew .Net R&D.

        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.