Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Slider / Thumbs Interaction Mode

Drag the thumbs of the slider controls to see how the behavior of the control changes, when you specify different thumbs interaction mode.

Free thumbs interaction mode

Decrease
  • 00
  •  
  • 1010
  •  
  • 2020
  •  
  • 3030
  •  
  • 4040
  •  
  • 5050
  •  
  • 6060
  •  
  • 7070
  •  
  • 8080
  •  
  • 9090
  •  
  • 100100
Increase

Lock thumbs interaction mode

Decrease
  • 00
  •  
  • 1010
  •  
  • 2020
  •  
  • 3030
  •  
  • 4040
  •  
  • 5050
  •  
  • 6060
  •  
  • 7070
  •  
  • 8080
  •  
  • 9090
  •  
  • 100100
Increase

Push thumbs interaction mode

Decrease
  • 00
  •  
  • 1010
  •  
  • 2020
  •  
  • 3030
  •  
  • 4040
  •  
  • 5050
  •  
  • 6060
  •  
  • 7070
  •  
  • 8080
  •  
  • 9090
  •  
  • 100100
Increase

  • Thumbs interaction mode

    The ThumbsInteractionMode property of RadSlider specifies how the two thumbs of the slider, in case IsSelectionRangeEnabled property is set to true, interact. The different interaction modes influence the behavior of the control only in case IsSelectionRangeEnabled property is set to true. The possible values for ThumbsInteractionMode are:

    • Free - The two thumbs can accept any value in the range [MinimumValue; MaximumValue].
    • Lock - The first thumb can accept any value in the range [MinimumValue; SelectionEnd], whereas the second thumb can accept any value in the range [SelectionStart; MaximumValue].
    • Push - The first thumb pushes the second thumb, when the user tries to drag it past the second thumb and vice versa.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="vb" AutoEventWireup="false" Inherits="Telerik.Web.Examples.Slider.ThumbsInteractionMode.DefaultVB"
        CodeFile="DefaultVB.aspx.vb" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag ID="Headtag1" runat="server" />
        <style type="text/css">
            .SliderOuterWrap
            {
                height: 170px;
            }
            .SliderOuterWrap h3
            {
                color: #005d6e;
                border-bottom: 1px solid #b2ced3;
                padding-bottom: 3px;
                font-style: normal;
                font-size: 12px;
            }
            .SliderWrapper
            {
                width: 375px;
                height: 100px;
                margin: 40px auto 0;
                padding: 15px 0 0 0;
            }
        </style>
    </head>
    <body class="BODY">
        <form id="Form1" method="post" runat="server">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="VB" />
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <qsf:InformationBox ID="InformationBox1" runat="server"
            Title="Drag the thumbs of the slider controls to see how the behavior of the control changes, when you specify different thumbs interaction mode.">
        </qsf:InformationBox>
        <div class="SliderOuterWrap">
            <h3>
                Free thumbs interaction mode</h3>
            <div class="SliderWrapper">
                <telerik:RadSlider ID="PlayBallSlider" runat="server" Width="370px" Height="70px"
                    TrackPosition="Center" IsSelectionRangeEnabled="true" SelectionStart="30" SelectionEnd="70"
                    ThumbsInteractionMode="Free" EnableServerSideRendering="true" ItemType="Tick"
                    SmallChange="5" LargeChange="10">
                </telerik:RadSlider>
            </div>
        </div>
        <div class="SliderOuterWrap">
            <h3>
                Lock thumbs interaction mode</h3>
            <div class="SliderWrapper">
                <telerik:RadSlider ID="WoodSlider" runat="server" Width="370px" Height="70px" TrackPosition="Center"
                    IsSelectionRangeEnabled="true" SelectionStart="30" SelectionEnd="70" ThumbsInteractionMode="Lock"
                    EnableServerSideRendering="true" ItemType="Tick" SmallChange="5" LargeChange="10">
                </telerik:RadSlider>
            </div>
        </div>
        <div class="SliderOuterWrap">
            <h3>
                Push thumbs interaction mode</h3>
            <div class="SliderWrapper">
                <telerik:RadSlider ID="BVS" runat="server" Width="370px" Height="70px" TrackPosition="Center"
                    IsSelectionRangeEnabled="true" SelectionStart="30" SelectionEnd="70" ThumbsInteractionMode="Push"
                    EnableServerSideRendering="true" ItemType="Tick" SmallChange="5" LargeChange="10">
                </telerik:RadSlider>
            </div>
        </div>
        <qsf:Footer runat="server" ID="Footer1" />
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451