Welcome Guest Search | Active Topics | Sign In | Register

Splitter collapse Options
Marco
Posted: Friday, April 22, 2011 5:33:12 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Hello,

is it possible to collapse splitter from c# codebehind?

Thanks
eo_support
Posted: Friday, April 22, 2011 8:39:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. You would set CollapseLeft to true.

Thanks
Marco
Posted: Thursday, May 5, 2011 7:38:47 AM
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?
eo_support
Posted: Thursday, May 5, 2011 10:24:32 AM
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!
Marco
Posted: Thursday, May 5, 2011 10:51:31 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Thanks,

now it works.
eo_support
Posted: Thursday, May 5, 2011 10:53:12 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.