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 all,
I'm trying to resize WebDialogBox via javascript:
function OpenDialog_Modal(dialogParams) { _dialogParams = dialogParams; var _Dlg_Model_Dialog = ISGetObject("Dlg_Model_Dialog"); _Dlg_Model_Dialog.SetContentURL(_dialogParams.url); _Dlg_Model_Dialog.Height = _dialogParams.height; _Dlg_Model_Dialog.Width = _dialogParams.width; _Dlg_Model_Dialog.ShowDialog(); }
It all works well for the first time OpenDialog_Modal is called with certain params.
Calling it again, with different width & height does not seem to resize the WebDialogBox
with previous size elemetns called.
What am I missing?
Hi Roi,
I can replicate your issue here. However this problem appear because it has create the object at client side when showing for the first time. You could change the size value by changing its Window after it has the Window value. Here's the code:
function WebButton1_OnClientClick(controlId, parameter) { var WebDialogBox1 = ISGetObject("WebDialogBox1"); if (WebDialogBox1.Window == null) { WebDialogBox1.Height = "200px"; WebDialogBox1.Width = "400px"; } else { WebDialogBox1.Window.ResizeTo("400px", "200px"); } WebDialogBox1.ShowDialog(); return true; }
When initialize the Window attribute will be null so the height and width will refer to WebDialogBox' Height and Width and it will refer to window object when it has been initialized. Hope this helps.
Regards,Bernard
Bernard Hi,
Fantastic! Works like charm!
Though I think that should have been done automatically, just by calling ShowDialog();
BTW, where can I find full client side API's for all controls?
Regards,
Yes, I think it should have done automatically just by using ShowDialog(). But I think there is some API that our user inherit from our WebDesktop that cause us to search a different level object for rendering different size on WebDialogBox. However, I will add you suggestion to our developer team so they can consider this scenario in the future. For your information, you can see all of our client side API reference on our Documentation in Client Side Reference section. 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