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

Q2 Bug: RadSlider no longer respect the width of the ticks when using TickTemplate

6 Answers 71 Views
Slider
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 06 Sep 2011, 10:13 AM
I am using the latest internal build (0823).

See the attached screen shot. The first slider has HorizontalAlignment="Left" and a wrapping textblock in the TickTemplate, but the slider does not respect the width of the textblocks. The second has Width="900" (I only included this so that you can see the contents of the ticks).

This was never a problem in the Q1 release. We need a quick fix for this since we have a minor product release coming up soon.

Thank you,
/Henrik

6 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 06 Sep 2011, 12:22 PM
Hi Hwsoderlund,

Thank you for reporting this. Recently we did some refactoring of the RadSlider control. Major improvements were made in the data binding support and layout performance. Currently, the slider control will layout its Ticks on the track on equal distances, which is calculated based on the size of the control, and not based on the size of the ticks. For now, you would have to either Stretch the control or provide (Min)Width.

As this is a regression issue, I have logged this issue in our PITS under "Slider: Slider does not respect the Ticks' sizes when HorizontalAlignment is left". It will be available for tracking 24 from now.

All the best,
Alex Fidanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
hwsoderlund
Top achievements
Rank 1
answered on 06 Sep 2011, 01:13 PM
Ok, thanks for the quick answer. This is a problem for me as it clearly is a regression in existing functionality. Stretching is not really an option since I have no idea how many ticks might be in the scale. This is a scale for measuring competence levels, and the different scales are all configurable by the customer. If a scale has only three steps the slider will look ridiculous when stretched to the full length of the page. And setting a MinWidth will also be problematic since the ticks will look silly if the label is very short, and especially if there are many steps. Do you have any idea when a fix might be in place? Or perhaps you can suggest another workaround?

Thank you,
/Henrik
0
Alex Fidanov
Telerik team
answered on 06 Sep 2011, 03:38 PM
Hi Hwsoderlund,

I am not sure if there is a workaround that you can apply from outside of the control. I took a look at the sizing and positioning implementation and here are some of the ways we can resolve this.

In the case, where each tick has a different size (width) and ticks have to be equally spaced out (assuming that you are using TickFrequency), we can set the distance between each tick to the width of the largest tick.
This way, the tick labels will not overlap (as in the version before the refactoring).

In the case, where the Ticks collection is used, then tick labels may overlap.

I am attaching a screenshot of what the behavior will be (when no Width is set and Ticks have sporadic sizes).

Please let me know if that is acceptable in your scenario.

Greetings,
Alex Fidanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
hwsoderlund
Top achievements
Rank 1
answered on 06 Sep 2011, 04:05 PM
Yes, that is exactly what I need. Thank you. Any possibility of this making it into an internal build anytime soon?
0
Alex Fidanov
Telerik team
answered on 07 Sep 2011, 09:06 AM
Hello Hwsoderlund,

As the Service Pack is just round the corner (next week), I am not sure this will make it and be included in it (in concern of testing). However, we will try to include this in the internal build after the Service Pack.

Please let me know if that timeframe is acceptable for you or you need this earlier.

Kind regards,
Alex Fidanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
hwsoderlund
Top achievements
Rank 1
answered on 07 Sep 2011, 09:10 AM
Fine by me.
Tags
Slider
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
hwsoderlund
Top achievements
Rank 1
Share this question
or