iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi Roi,
For the issue number 1 and 2, you can solve this issue by attaching onmouseup event when dialogbox created on client side. In OnCreated event, you could add onmouseup event of frame element of dialogbox.
Here's the snippet code:
function OnCreated(controlId) { var dlgBox = ISGetObject(controlId); dlgBox.Window.GetWindowDivElement().onmouseup = function () { CheckLocation(); }; } function CheckLocation() { var dlgBox = ISGetObject('WebDialogBox1'); //prevent webdialogbox header missing when dragged to top if (dlgBox.Window.GetWindowDivElement().style.top.indexOf('-') != -1) { dlgBox.Window.MoveTo(parseInt(dlgBox.Window.GetWindowDivElement().style.left.replace('px', '')), 0); } //prevent move by move it to the center after move dlgBox.Window.MoveToCenterDesktopAbsolute(); }
Although it's not possible to allow minimize in your WebDialogBox when not integrated with WebDesktopManager because WebDialogBox and WebDesktopWindow has different behavior. So to achieve minimize scenario, there are no other way than integrate your WebDialogBox to WebDesktopManager. Hope this helps.
Regards,Bernard
Bernard Hi,
For some reason the GetWindowDivElement() is null when OnCreated fires.
I had to use this call dlgBox.Window.GetWindowDivElement().onmouseup = function () { CheckLocation(); };
only after .ShowDialog();
Anyhow, that did the trick.
That should do the trick also because WebDialogBox will be created during ShowDialog and you could add the mouseup handler in there. Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname