We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Ej dialog error

Hi,

I am using ejDialog as pop-out.
Trigger event: Double click on a node
Dialog Content: loaded dynamically using jquery .load() function.

Problem:
Based on my observation, if the page to be loaded contains many "div" or elements, after DOUBLE-CLICK for the first time and close it, the second time when you try to DOUBLE-CLICK again the ejDialog will not pop out anymore.

However, if only few elements within the page, then DOUBLE-CLICK to have the ejDialog pop-out, close it, repeat it for many times also will not have any issue.

How can I solve this problem?

Remarks:
1. I have tried to simulate this issue in the sample code.  (DiagramBuilder.aspx)
2. As attached, under dashboard, I have created a new folder "Pages", to hold the dynamic page I want to display.
3. If I uncomment the commented line, the I will get the mentioned issue. 
4. But if I uncomment them, then no issue. 

Code snippet:

<div id="main-right">
<ej:Diagram ID="DiagramContent" runat="server" Height="100%" Width="100%" ></ej:Diagram>
  <ej:Dialog ID="DialogControlEditorDialog" Title="Node" CloseIconTooltip="Close" AllowDraggable="true"
   Width="850" runat="server" EnableModal="true" ShowHeader="true" EnableAutoResize="false"
   EnableResize="false" ShowRoundedCorner="true" ShowOnInit="false" CloseOnEscape="true">
   <DialogContent>
   <div id="dialogContentActivity"></div>
   </DialogContent>
</ej:Dialog>
</div>

function DoubleClick(argument) {

            var dialogObj = $("#DialogControlEditorDialog").data("ejDialog");

            if (dialogObj) {

                var dialogObjTitle = "Activity Details";

                dialogObj.option("title", dialogObjTitle);

                dialogObj.open();

                var url = 'Pages/Default.aspx';

                $('#dialogContentActivity').load(url, {
                    
                }, function () {

                    if (onSuccessLoadPage) {
                        onSuccessLoadPage();
                    }
                });

       }
}

As attached, are the video when I test on my own project, on the sample project and also the code I modified in the sample project.

Thank you.


Attachment: ejDialog_d104eb9c.zip

3 Replies

SG Shyam G Syncfusion Team June 2, 2015 11:14 AM UTC

Hi Alvin

Thanks for using Syncfusion products.

We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,
Shyam G


AP Alvin Phang June 5, 2015 01:56 AM UTC

Thank you for the reply. Have a good day.


SG Shyam G Syncfusion Team June 5, 2015 04:12 AM UTC

Hi Alvin

Thanks for your update.

Please let me know if you require further assistance on this.

Regards,
Shyam G

Loader.
Up arrow icon