Images for Slider bar

2 posts, 0 answers
  1. Frank
    Frank avatar
    10 posts
    Member since:
    Nov 2008

    Posted 16 Apr 2010 Link to this post

    Using Rad Controls for ASP.NET AJAX Q3 2009 SP2

    All the skins I have seen have one image for the Track Bar.
    Is it possible to use different images for the track bar ends? I need to create a slider bar that has rounded ends.
  2. Bozhidar
    Bozhidar avatar
    693 posts

    Posted 19 Apr 2010 Link to this post

    Hi Frank,

    Please, find attached two zipped projects with two different solutions for RadSlider with rounded ends.

    First solution: SliderRoundedFlexibleWidth - I have changed the image sprite in a way to show rounded ends for the SlideTrack. In that case you could specify any width for the RadSlider, as the rounded ends are part of the sprite that inserts the arrows and it does not have any problem with the width of the SlideTrack. The problem of that solution is that the rounded ends are not part of the SlideTrack. And even if the slider covers the round end visually you should consider that it is not part of the SlideTrack.

    Files in SliderRoundedFlexibleWidth: Default.aspx,  HandlesRounded.gif

    Second solution: SliderRoundedFixedWidth - This is a solution with a fixed width. The advantage is that in that case the rounded ends are part of the SlideTrack. The limitation is that you should have fixed width for the SlideTrack.

    Files in SliderRoundedFixedWidth: Default.aspx, RoundSelected.gif, RoundSlide.gif

    All the best,
    Bozhidar Ruzhenov
    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.
Back to Top