This is a migrated thread and some comments may be shown as answers.

RadSplitter Hover image issue.

1 Answer 56 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Robert Dennyson
Top achievements
Rank 2
Robert Dennyson asked on 19 Oct 2010, 04:38 PM
Hi

I'm using RadSplitter with radslidingpane.  I have the following issue with these controls. I have attached screen of my issue. Plz provide the solution.


Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 22 Oct 2010, 06:32 AM
Hi Robert,

RadSplitter does not offer the required functionality out of the box. However, you can achieve the required result by manually resizing the tab container and the sliding zone during the OnBeforeDock / OnBeforeUndock RadSlidingPane's client-side events, e.g.:
<telerik:RadSplitter ID="RadSplitter1" runat="server">
    <telerik:RadPane ID="RadPane1" runat="server" Width="22px">
        <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server">
            <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" OnClientBeforeDock="OnClientBeforeDock"
                OnClientBeforeUndock="OnClientBeforeUndock">
            </telerik:RadSlidingPane>
        </telerik:RadSlidingZone>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="RadSplitBar1" runat="server">
    </telerik:RadSplitBar>
    <telerik:RadPane ID="RadPane2" runat="server">
    </telerik:RadPane>
</telerik:RadSplitter>
<script type="text/javascript">
    function OnClientBeforeDock(sender, eventArgs)
    {
        var slidingZone = $find('<%=RadSlidingZone1.ClientID %>'); //get reference to the sliding zone
        sender.getTabContainer().style.width = "0px";
        slidingZone.get_element().style.width = "0px";
    }
    function OnClientBeforeUndock(sender, eventArgs)
    {
        var slidingZone = $find('<%=RadSlidingZone1.ClientID %>'); //get reference to the sliding zone
        sender.getTabContainer().style.width = "22px";
        slidingZone.get_element().style.width = "22px";
 
        var parentPane = $find('<%=RadPane1.ClientID %>');
    }
</script>


All the best,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Splitter
Asked by
Robert Dennyson
Top achievements
Rank 2
Answers by
Dobromir
Telerik team
Share this question
or