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
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 >>
Thank you,
/Henrik
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 >>
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 >>