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

7 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 06 Sep 2011 Link to this post

    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
  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 06 Sep 2011 Link to this post

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

  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 06 Sep 2011 Link to this post

    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
  5. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 06 Sep 2011 Link to this post

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

  6. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 06 Sep 2011 Link to this post

    Yes, that is exactly what I need. Thank you. Any possibility of this making it into an internal build anytime soon?
  7. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 07 Sep 2011 Link to this post

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

  8. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 07 Sep 2011 Link to this post

    Fine by me.
Back to Top
DevCraft banner