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

Adding pointers in runtime

6 Answers 81 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Islam Abdel Aziz
Top achievements
Rank 1
Islam Abdel Aziz asked on 27 May 2010, 07:49 AM
Hello,

Please I want to:
 1.add pointers in run time , more than two pointers in a slider
  2. attach a label for each pointer in the slider

Many Thanks

6 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 01 Jun 2010, 04:42 PM
Hi Islam Abdel Aziz,

I am not sure I understand your scenario correctly. Can you please elaborate on it a bit more. Also when you say "pointers" do you mean Thumbs?

Thank you in advance.

Kind regards,
Tina Stancheva
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.
0
Islam Abdel Aziz
Top achievements
Rank 1
answered on 03 Jun 2010, 06:47 AM
yes,  I mean Thumb .
I want to add more thumbs in runtime and also I need to attach a label for each thumb
0
Valentin.Stoychev
Telerik team
answered on 04 Jun 2010, 04:41 PM
Hi Islam Abdel Aziz,

We don't support adding more than one thumb. We only have a special mode with two thumbs for enabling a range slider.

Best wishes,
Valentin.Stoychev
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.
0
Ruben Hakopian
Top achievements
Rank 1
answered on 11 Sep 2010, 12:58 AM
Hi Valentin,

What will be the procedure to add a label to a thumb?
For example, I want to show the value of the thumb.

Thank you,
Ruben
0
Kiril Stanoev
Telerik team
answered on 16 Sep 2010, 12:08 PM
Hello Ruben,

You can edit the Style of RadSlider and set a tooltip that is bound to the Value property:

<Thumb x:Name="HorizontalSingleThumb" Grid.Column="1"
        Height="18" IsEnabled="{TemplateBinding IsEnabled}"
        Template="{StaticResource HorizontalThumbTemplate}"
        Visibility="{TemplateBinding ThumbVisibility}"
        VerticalAlignment="Center" Width="8"
        ToolTipService.ToolTip="{TemplateBinding Value}" />

I've attached a project containing a sample solution to this scenario. Have a look at it and let me know if it helps. One further clarification, since the XAML of RadSlider is quite large, you can delete the unnecessary stuff. For example, if your slider is horizontal with just 1 thumb, you can remove HorizontalRangeTemplate, VerticalTemplate etc.

Kind regards,
Kiril Stanoev
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
0
Ruben Hakopian
Top achievements
Rank 1
answered on 16 Sep 2010, 05:46 PM

Hi Kiril,

 

What I meant was changing the Thumb so that these numbers are visible all the time.

I've already figured out how to change the template and put numbers inside.

 

Tthanks,

Ruben

Tags
Slider
Asked by
Islam Abdel Aziz
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Islam Abdel Aziz
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Ruben Hakopian
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or