Bug Report B144365
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Provide the capability to use jQuery UI widgets with our controls

ASPxEditors Controls stop working when used with the jQuery UI Dialog

created 15 years ago

Editors suite controls stop functioning when using jquery ui dialog.
tested with aspxComboBox and aspxDateEdit, possibly others as well.
Steps to Reproduce:
Open the sample project and run default.aspx.
Press the 'open dialog' button and the dialog appears.
As you can see the normal dropdown will work when clicking, but the aspxcombobox next to status will not function and neither will the date item.
This is a stripped project to minimize code, so the problem can be quickly found. Please do not pay attention to style as css elements are not all included.
Please let me know if you require any additional information.
I hope this issue can be resolved quickly.
Thank you for your response and efforts.
Kind regards,
P.J. Bollebakker

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

    Hi P. J.,
    In your instance, you can call the following PatchJQuery function after the page is loaded, or after the main JQuery script is loaded, or directly call this function at the end of the main JQuery script.

    JavaScript
    function PatchJQuery() { if(!window.jQuery || !window.jQuery.clean) return; var original = window.jQuery.clean; window.jQuery.clean = function(elems, context, fragment, scripts) { var execResult = original.call(jQuery, elems, context, fragment, scripts); if(scripts && scripts.length) { for(var i = scripts.length - 1; i >= 0; i--) { var script = scripts[i]; if(IsDXScript(script)) ArrayRemoveAt(scripts, i); } } return execResult; }; } // Utils function IsDXScript(script) { return script && script.id && script.id.indexOf("dx") == 0; } function ArrayRemoveAt(array, index) { if(index >= 0 && index < array.length){ for(var i = index; i < array.length - 1; i++) array[i] = array[i + 1]; array.pop(); } }

    Attached is a modified project.
    Thanks,
    Michael.

      WOW, now that's what I call support! It would have taken me days if not more to figure that out.
      I can't tell you enough how much I appreciate the effort you have taken to write up this solution. Thank you very very much!!

      DevExpress Support Team 15 years ago

        Hi P. J.,
        I am happy to hear that our assistance was helpful to you. Our customers' warm words are the best reward for all of us. Please feel free to contact us in case of any difficulties.
        Thanks

        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.