I have two panes separated by a splitbar. When the user resizes or expands/collpases the splitbar, I'm saving the width of both panes in a cookie. When the user returns to the page, I'm extracting the cookie information and setting the widths of each pane. If either one of the widths returned from the cookie is '0', I set the corresponding pane to Collapse() and the other one to Expand().
The issue is that the user can't expand the collapsed pane, clicking on the arrow does nothing. Does something else need to be set? Ideally, I would like the splitbar to go to 50% width of the radSplitter so the user can then resize manually or be able to expand or collapse either pane.
Thanks!
function OnClientLoadedHandler(splitter, args)
{
var leftWidthCookie = getCookie('leftPaneWidth');
var rightWidthCookie = getCookie('rightPaneWidth');
if (leftWidthCookie != null && rightWidthCookie != null)
{
var leftPane = splitter.getPaneById('<%= LeftPane.ClientID %>');
var rightPane = splitter.getPaneById('<%= RightPane.ClientID %>');
if (leftWidthCookie == '0')
{
leftPane.Collapse();
rightPane.Expand();
}
else if (rightWidthCookie == '0')
{
rightPane.Collpase();
leftPane.Expand();
}
else
{
leftPane.set_width(leftWidthCookie);
rightPane.set_width(rightWidthCookie);
}
}
}
The issue is that the user can't expand the collapsed pane, clicking on the arrow does nothing. Does something else need to be set? Ideally, I would like the splitbar to go to 50% width of the radSplitter so the user can then resize manually or be able to expand or collapse either pane.
Thanks!