Ticket Q278341
Visible to All Users

ASPxUploadControl in jQuery Dialog Box

created 15 years ago

When the ASPXUploadControl is inside of a JQuery Dialog, uploading a file throws Javascript errors:
Line: 194635494
Error: 'null' is null or not an object
See the attached sample file which reproduces this behavior.
On line 33 of default.aspx if you remove the text 'style="display: none;"' and just use the upload control when the page loads, you will see that it works fine. Only when display:none; is set does the control fail.

Comments (2)
DevExpress Support Team 15 years ago

    Hello Patrick,
    Thank you for the project. I have reproduced the issue. I have forwarded it to our developers for a detailed investigation. Sorry for a possible delay.
    Thanks,
    Marion

    DevExpress Support Team 15 years ago

      Patrick,
      Our developers have researched the issue, and found out that the auto open dialog scripts conflict with our ones. Unfortunately, we cannot fix this issue, but we have a workaround for you:

      JavaScript
      $(document).ready(function () { $("#UploadDialog").dialog({ autoOpen: false, open: function (type, data) { $(this).parent().appendTo("form:first"); } }); $("#UploadLink").click(function () { $("#UploadDialog").dialog("open"); }); });

      I have modified your project accordingly. It seems to work fine. Please check the attachment, and let me know the result.
      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.