Hi, which is the expected behaviour of setting ResizeWithBrowser="true".
In the attached example I expected that the panels (being set with percentage dimensions) will be automatically resized on browser resizing.
If my example is correct this doesn't happen, how can I accomplish this behaviour?
Thank You
Claudio
Hello Costanzo ,
I'm just following up to see if you might need further assistance with this issue.
If so please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Thank you for your patience while I was looking into this.
I’ve contacted our development team and inquired about this issue.
It seems that persistence of % size of splitter panes is not supported. On client only pixel sizes are used and possible percent have effect only on initialization.
Here’s also their suggestion on supporting %:
<script type="text/javascript">
function pageOnLoad()
{
$addHandler(window, 'resize', onResize);
}
function onResize()
var splitter = $find('<%=webSplitter.ClientID%>');
var width = splitter.get_element().clientWidth;
var pane1 = splitter.getPaneAt(0);
pane1.set_size(width * 0.7);
var splitterChild = $find('<%=webVerticalSplitter.ClientID%>');
var height = splitter.get_element().clientHeight;
var paneChild1 = splitterChild.getPaneAt(0);
paneChild1.set_size(height * 0.3);
</script>
</head>
<body onload="pageOnLoad()">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<ig:WebSplitter ID="webSplitter" runat="server" EnableViewState="true" DynamicResize="true" ResizeWithBrowser="true" ...
I’m also attaching a sample for your reference.
Note: Unfortunately in this scenario if you manually resize the splitter and then again resize the browser window it will revert back to the size specified in the onResize event. In other words the user’s setting when he manually resizes the splitter will be lost.
Let me know if you have any further question regarding this or if I can assist you in any other way.
Thank you for posting in our forum.
I’d just like to let you know that I’m looking into your issue and will notify you of my progress by tomorrow.
Thank you for your patience.