Removing the Thumb Button

You can remove the C1Slider control's thumb button so that the value of the control can only be changed using the increment and decrement buttons. In this topic, you'll learn how to remove the thumb button in Design view, Source view, and in code. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project).

In Design View

Complete the following steps:

1.   Right-click the C1Slider control to open its context menu and then select Properties from the list.

      The Properties window opens with C1Slider's properties in focus.

2.   Locate the ShowThumbButton property and set it to False.

In Source View

To remove the thumb button, add ShowThumbButton=False to the <cc1:C1Slider> tags so that the markup resembles the following:

 

 <cc1:C1Slider ID="C1Slider1" runat="server" ShowThumbButton="False">

In Code

Complete the following steps:

1.   Import the following namespace into your project:

      Visual Basic

      C# 

2.   Set the ShowThumbButton property to False by adding the following code to the Page_Load event:

      Visual Basic

      C# 

3.   Save the project and open it in a Studio for iPhone-compatible browser to execute the program.

 This Topic Illustrates the Following:

In this topic, you removed the thumb button from the C1Slider control. The image below depicts C1Slider with its thumb button removed:

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.