|
Rank: Member Groups: Member
Joined: 4/15/2011 Posts: 19
|
Hello,
is it possible to collapse splitter from c# codebehind?
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. You would set CollapseLeft to true.
Thanks
|
|
Rank: Member Groups: Member
Joined: 4/15/2011 Posts: 19
|
Hi, i still have this problem. Please look at this code:
Code: HTML/ASPX
<body>
<form id="form1" runat="server">
<div>
<eo:Splitter ID="Splitter" runat="server"
CollapseButtonHoverImage="00080103"
CollapseButtonImage="00080102" ControlSkinID="None"
DividerImage="00080101"
ExpandButtonHoverImage="00080105"
ExpandButtonImage="00080104"
CollapseLeft="true">
<eo:SplitterPane ID="TreePane" runat="server">
panel 1
</eo:SplitterPane>
<eo:SplitterPane ID="ContentPane" runat="server">
panel 2
</eo:SplitterPane>
</eo:Splitter>
</div>
</form>
</body>
I don't see any difference in debug setting CollapseLeft="true" or CollapseLeft="false" in this asp.net source. What does this property do?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Sorry our previous reply is wrong. CollapseLeft specifies whether clicking the splitter button collapses the left/top pane. In order to programmatically collapse the left pane, you need to set the left pane's State to "Collapsed". For example:
Code: HTML/ASPX
<eo:SplitterPane ID="TreePane" runat="server" State="Collapsed">
panel 1
</eo:SplitterPane>
Hope this helps and sorry about the previous mistake. Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/15/2011 Posts: 19
|
Thanks,
now it works.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You are very welcome. Please feel free to let us know if you have any more questions.
Thanks!
|
|