{"id":3729,"date":"2014-03-29T09:05:24","date_gmt":"2014-03-29T09:05:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/resizing-a-dockpanel-to-dockzone-height-and-width-collection-of-common-programming-errors\/"},"modified":"2014-03-29T09:05:24","modified_gmt":"2014-03-29T09:05:24","slug":"resizing-a-dockpanel-to-dockzone-height-and-width-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/resizing-a-dockpanel-to-dockzone-height-and-width-collection-of-common-programming-errors\/","title":{"rendered":"Resizing a DockPanel to DockZone height and width-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to resize a dynamic dock panel to the size of the dock zone in which it&#8217;s contained in javascript(client-side) at runtime. I am using the Dev Express DockZone and DockPanel. My JScript looks like this:<\/p>\n<pre><code>function setDockPanelFill() {\n    var dockPanel = ASPxClientControl.GetControlCollection().GetByName('dockPanel1');\n    var dockZone = document.getElementById('zone1');\n    dockPanel.SetHeight = dockZone.offsetHeight;\n    dockPanel.SetWidth = dockZone.offsetWidth;\n}\n<\/code><\/pre>\n<p>Any ideas on why this won&#8217;t work?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to resize a dynamic dock panel to the size of the dock zone in which it&#8217;s contained in javascript(client-side) at runtime. I am using the Dev Express DockZone and DockPanel. My JScript looks like this: function setDockPanelFill() { var dockPanel = ASPxClientControl.GetControlCollection().GetByName(&#8216;dockPanel1&#8217;); var dockZone = document.getElementById(&#8216;zone1&#8217;); dockPanel.SetHeight = dockZone.offsetHeight; dockPanel.SetWidth = dockZone.offsetWidth; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3729","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3729"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3729\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}