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

Using the slider in the grid

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Phil Kestenbaum
Top achievements
Rank 1
Phil Kestenbaum asked on 09 Aug 2010, 09:39 PM
I want to have the slider start in the middle. It is starting at the left therefore the user cannot see the effect of in this project, what if they order less, of a product. Here you have the way it looks:  http://img189.imageshack.us/img189/8184/budget1.png the slider is at the end of the row,

The code for the slider is here:
<telerik:GridViewColumn Header="Slider 'To Order' on Details" Width="300">
                            <telerik:GridViewColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="  -100% " />
                                        <telerikc:RadSlider Minimum="0" Maximum="100" Value="0" Width="150" Tag="{Binding Summary.Category}" ValueChanged="RadSlider_ValueChanged" />
                                        <TextBlock Text=" 100%" />
                                        <TextBlock Text=" [100%]" />
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewColumn.CellTemplate>
                        </telerik:GridViewColumn>

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 11 Aug 2010, 12:35 PM
Hello,

 In your code both Minimum and Value are set to 0. You will need to set Value to be something between Minimum and Maximum.

Best wishes,
Vlad
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
Tags
GridView
Asked by
Phil Kestenbaum
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or