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

Minimum Maximum range Problem

6 Answers 113 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 09 Jun 2010, 01:28 PM
Hello ,

My current slider code is..

<telerik:RadSlider Margin="10,10,10,10" x:Name="RadSlider1"   TickPlacement="Both" HorizontalAlignment="Left"  Orientation="Horizontal" HandlesVisibility="Visible" Width="730" Height="30">
                                <telerik:RadSlider.TickTemplate>
                                    <DataTemplate>
                                        <Grid>
                                            <TextBlock FontSize="8" UseLayoutRounding="True"
Text="{Binding Converter={StaticResource TickValueConverter}}" />
                                        </Grid>
                                    </DataTemplate>
                                </telerik:RadSlider.TickTemplate>
</telerik:RadSlider>

Code File :

RadSlider1.Minimum = 0;
RadSlider1.Maximum = 12;
RadSlider1.TickFrequency = 1;

It works OK .

But i want to set this Minimum range to 2000 and maximum range to 2012 .

When i m doing this i got stack overflow error .

Please help me .

-Thanks

6 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 10 Jun 2010, 07:43 AM
Hi Test,

Thank you for your feedback. We are aware of this issue and it has already been fixed. The fix will be available with this week's release. Give it a try and let me know if you experience any further issues.

Greetings,
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
Santhosh
Top achievements
Rank 1
answered on 06 Jul 2011, 01:08 PM
I have a similar issue. The thumbs doesn't move when the Minimum value is not 0. 
Works fine if the range is 0 - 1000, but doesn't work if range is 100-1000.

<telerik:RadSlider HorizontalAlignment="Left" HorizontalContentAlignment="Left" 
	    telerik:StyleManager.Theme="Windows7"
   Minimum="{Binding MinValue}" IsTabStop="False"
   Maximum="{Binding MaxValue}"
   SelectionStart="{Binding SelectedMinValue, Mode=TwoWay}"
   SelectionEnd="{Binding SelectedMaxValue, Mode=TwoWay}"
   MinimumRangeSpan="{Binding MinValue}" MaximumRangeSpan="{Binding MaxValue}"
   IsSelectionRangeEnabled="True"
   SmallChange="10" LargeChange="100"
   Width="200">
</telerik:RadSlider>

-Santhosh
0
Santhosh
Top achievements
Rank 1
answered on 06 Jul 2011, 01:29 PM
I am using 2011.1.419.1040 version of the dlls.

Also when the range is between -ve and +ve values, the Maximum value resets to 0 and no selection can be made above 0.

-Santhosh
0
Petar Mladenov
Telerik team
answered on 11 Jul 2011, 02:20 PM
Hello Santhosh,

Could you please help me in reproducing your issues? I prepared a sample that uses your code but, unfortunately, I was unable to  simulate neither the selection range issue, nor the "-ve-+ve" issue. What are the exact values that you bind to? Furthermore, you can test your application with the dlls from the Q2 2011 Beta where a re-factored version of RadSlider is included.

Best wishes,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Santhosh
Top achievements
Rank 1
answered on 12 Jul 2011, 06:41 AM
Hi Petar, 

I saw another post which said to make the binding two way and this fixed my issue.

http://www.telerik.com/community/forums/silverlight/slider/problem-with-radslider-and-negative-values.aspx

Thanks for looking into this.

-Santhosh
0
Petar Mladenov
Telerik team
answered on 14 Jul 2011, 03:17 PM
Hello Santhosh,

Please also try the RadSlider from the new Q2 release. The new RadSlider is re-factored, faster and many of its old issues are now resolved.

Greetings,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Slider
Asked by
Albert
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Santhosh
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or