C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

MouseOver Expand and Collapse

rated by 0 users
This post has 1 Reply | 1 Follower

Top 100 Contributor
Posts 50
lenchase Posted: Mon, Dec 31 2007 9:11 AM

Hi:

Is there a way to provide clientside expand and collaspe thru say a click or mouseover event?

Thanks

Len

Top 25 Contributor
Posts 587
The clientside function to Expand/Collapse is

C1WebSplitter1_SplitContainer.ToggleExpand();

 

You can add onClick or onMouseOver events to the WebPanels of the splitter and toggle the splitter through this way.

<C1WebSplitter:C1WebSplitter ID="C1WebSplitter1" runat="server" Height="318px" SkinName="Default" Width="483px">
 <C1WebSplitter:C1WebPanel runat="server" onClick="dothis()" onMouseOver="dothis()">
 </C1WebSplitter:C1WebPanel>
 <C1WebSplitter:C1WebPanel runat="server" onClick="dothis()" onMouseOver="dothis()">
 </C1WebSplitter:C1WebPanel>
</C1WebSplitter:C1WebSplitter>

<script type="text/javascript">
    function dothis()
    {
        C1WebSplitter1_SplitContainer.ToggleExpand();
    } 
    </script>

Hope that helps,
Greg L

 

Greg Lutz ComponentOne
Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.