PDA

View Full Version : [OPEN] [#1821] Desktop window when data loads to content region



Vamsi
May 04, 2020, 12:03 PM
Hi,

Open the Desktop control in example page.

Once login to page we will see list of shortcuts then click on what's new shortcut and it will open window then close the window and again try to reopen the same (what's new) window we will get blank page(some issues)..Mainly issue with content region..Can you please look in to this. Image attached for your reference.


<%@ Control Language="C#" %>

<ext:DesktopModuleProxy runat="server">
<Module ModuleID="whatsnew-win" AutoDataBind="true">
<Shortcut Name="What's new" SortIndex="100" />
<Window>
<ext:Window runat="server"
Width="600"
Height="250"
AnimCollapse="false"
ConstrainHeader="true"
Border="false"
StyleHtmlContent="true">

<Content>
<ul>
<li>
Dynamic modules (attach/deattach modules from server side without page reloading)
</li>
<li>
Modules can be defined in the user control now
</li>
<li>
Shortcuts multi selection (including drag selection)
</li>
<li>
Shortcuts drag&amp;drop (multiple shortcuts dragging is supported)
</li>
<li>
Shortcut and desktop context menu
</li>
<li>
Quick lanch and tray
</li>
</ul>
</Content>
</ext:Window>
</Window>
</Module>
</ext:DesktopModuleProxy>


Thank you,
Vamsi.

Vamsi
Jul 31, 2020, 5:29 AM
Hi,

Can you please look into below issue as I'm facing same issue when using Content
section.

Thank you,
Vamsi.

geoffrey.mcgill
Jul 31, 2020, 6:09 AM
Thanks for the report. We will investigate.

This thread has been moved to the Premium 5.x Help forums.

fabricio.murta
Jul 31, 2020, 11:19 PM
Hello @Vamsi!

It seems issue #1488 (https://github.com/extnet/Ext.NET/issues/1488) made this fix we already had for the desktop take place again.

We have logged then issue #1820 (https://github.com/extnet/Ext.NET/issues/1821) to track and fix it again in Ext.NET.

In the time being, to regain the fix from old Ext.NET versions, you can use this override:



Ext.define("gh1821", {
override: "Ext.ux.desktop.Desktop",
createWindow: function () {
var me = this,
win = me.callParent(arguments);

if (win.closeAction == "hide") {
win.doClose = Ext.window.Window.prototype.doClose;
win.on("close", function (win) {
this.onWindowClose(win);
}, this);
}

return win;
}
})


Once we implement this (or a similar) fix to Ext.NET code, we'll post another update to this thread.

Also, ensure your window's CloseAction="Hide" or the fix won't be triggered and the window will be again destroyed on closed regardless of the CloseAction setting.

Hope this helps!