Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Slider > Q2 Bug: RadSlider no longer respect the width of the ticks when using TickTemplate

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

Feed from this thread
  • Posted on Sep 6, 2011 (permalink)

    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
    Attached files

    Reply

  • Alex Fidanov Alex Fidanov admin's avatar

    Posted on Sep 6, 2011 (permalink)

    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 >>

    Reply

  • Posted on Sep 6, 2011 (permalink)

    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

    Reply

  • Alex Fidanov Alex Fidanov admin's avatar

    Posted on Sep 6, 2011 (permalink)

    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 >>

    Attached files

    Reply

  • Posted on Sep 6, 2011 (permalink)

    Yes, that is exactly what I need. Thank you. Any possibility of this making it into an internal build anytime soon?

    Reply

  • Alex Fidanov Alex Fidanov admin's avatar

    Posted on Sep 7, 2011 (permalink)

    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 >>

    Reply

  • Posted on Sep 7, 2011 (permalink)

    Fine by me.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Slider > Q2 Bug: RadSlider no longer respect the width of the ticks when using TickTemplate
Related resources for "Q2 Bug: RadSlider no longer respect the width of the ticks when using TickTemplate"

Silverlight Slider Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]