﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - Resize WebDialogBox using javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Resize-WebDialogBox-using-javascript/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Resize WebDialogBox using javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Resize-WebDialogBox-using-javascript/</link><pubDate>Wed, 11 Dec 2013 22:47:48 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;&lt;p&gt;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 &lt;b&gt;Client Side Reference&lt;/b&gt; section. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Resize WebDialogBox using javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Resize-WebDialogBox-using-javascript/</link><pubDate>Wed, 11 Dec 2013 02:59:04 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>&lt;p&gt;Bernard Hi, &lt;/p&gt;&lt;p&gt;Fantastic! Works like charm!&lt;/p&gt;
&lt;p&gt;Though I think that should have been done automatically, just by calling ShowDialog(); &lt;/p&gt;
&lt;p&gt;BTW, where can I find &lt;b&gt;full&lt;/b&gt; client side API's for all controls?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Resize WebDialogBox using javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Resize-WebDialogBox-using-javascript/</link><pubDate>Tue, 10 Dec 2013 21:27:34 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;&lt;p&gt;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:&lt;/p&gt;&lt;pre&gt;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;
}&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Resize WebDialogBox using javascript</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Resize-WebDialogBox-using-javascript/</link><pubDate>Tue, 10 Dec 2013 08:40:53 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I'm trying to resize WebDialogBox via javascript:&lt;/p&gt;&lt;pre&gt;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();
    
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;It all works well for the first time&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt;"&gt;OpenDialog_Modal&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;is called with certain params.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Calling it again, with different width &amp;amp; height does not seem to resize the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;WebDialogBox&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;with&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;previous size elemetns called.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;What am I missing?&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>