// Dialog found in the partial view page and the changed ID
@{Html.EJ().Dialog("basicDialog2").Title("Save").ClientSideEvents(e => e.Close("onDialogClose")).EnableModal(true).ShowOnInit(false).Width(451).ContentTemplate(@<div>
<div style="height: 30px; width: 100%; font-size: 16px;">
File Name
</div>
//Something
</div>
</div>).Render();}
|
Query |
Response |
Thank you for your response. I was checking the new project and the JavaScript error is partially gone now. I still have it erratically. |
The updateSize method in the methods_DocumentPreview.js file is not called which we call from the window resize event in events_ DocumentPreview.js file. This is due to document ready event fired first in events_ DocumentPreview.js file and secondly in methods_DocumentPreview.js. so please remove document ready event from the JavaScript file to resolve your reported issue. . Please refer to the modified sample below. |
However, all the toolbar functionality is still not working that is main concern. All the zoom, drag and other buttons there should be working fine. Could you please help me to make those functionality work again. |
You have registered events in the server side(view file) and defined it in the client side under the document ready event in the JavaScript files. So only the events are not triggered. To resolve the issue, please define this events in the client side or remove the document ready event. We have removed document ready event in your JavaScript files to resolve your reported issue. Please refer to the modified sample below. |