Docking SlidingZone w/o pushing underlying text

2 posts, 1 answers
  1. WombatEd
    WombatEd avatar
    54 posts
    Member since:
    Mar 2010

    Posted 25 May 2010 Link to this post

    When I first hover over a slidingzone, it comes in from the left and covers the existing content.  Then when I click the pushpin, the zone docks and pushes the existing content off the page to the right.

    What I want it to do is to cover the existing content the way it did before I docked it.

    Can this be done?

    TIA,

       Ed
  2. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 28 May 2010 Link to this post

    Hi Ed,

    By design, RadSlidingPane does not offer the required functionality out-of-the-box. In order to achieve such behavior, I would suggest to use one of the following approaches:
    1. Configure the sliding zone to expand when clicked, and disable the docking option for the sliding pane. This will keep the pane expanded until its closed, and it will hover the content of the other RadPane, e.g:
      <telerik:RadPane ID="RadPane1" runat="server" Width="22px" Scrolling="None">
          <telerik:RadSlidingZone ID="RadSlidingzone1" runat="server" Width="22px" ClickToOpen="true">
              <telerik:RadSlidingPane ID="RadSlidingPane1" Title="Pane1" runat="server" Width="150px" EnableDock="false">
                  Pane 1 Content
              </telerik:RadSlidingPane>
              <telerik:RadSlidingPane ID="RadSlidingPane2" Title="Pane1" runat="server" Width="150px" EnableDock="false">
                  Pane 2 Content
              </telerik:RadSlidingPane>
              <telerik:RadSlidingPane ID="RadSlidingPane3" Title="Pane1" runat="server" Width="150px" EnableDock="false">
                  Pane 3 Content
              </telerik:RadSlidingPane>
          </telerik:RadSlidingZone>
      </telerik:RadPane>
    2. If you do not want to expand the panes on click, but want to use the standard behavior (on hover), I suggest to attach an eventhandler to the OnClientCollapsing client-side event of the sliding pane and cancel it, e.g.:
      function OnClientCollapsing(sender, args)
      {
          if(!toCollapse)
              args.set_cancel(true);
      }

    I hope this helps.

    Sincerely yours,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top