RadSlider with two categories (Months and Years)

2 posts, 0 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Jan 2011

    Posted 30 Aug 2013 Link to this post

    Hi Guys, 
      I am creating a report using Telerik Reports. One of the parameters for my report is a DateRange.
      I thought on using RadSlider as the datasource for this parameter.

      The visual problem I have, is that I would like to display two rows of categories, Months and Years, like in the attachment.
       Does RadSlider provide this functionality? Or what would you recommend me to do??

  2. Slav
    Slav avatar
    1359 posts

    Posted 03 Sep 2013 Link to this post

    Hello Michael,

    This functionality is not supported by the RadSlider control, nevertheless, there are two approaches that could allow you to implement it by customizing the control:
     - You may modify the field of the data-source that is used as a TextField for the slider in order to display the year only on the first month;
     - It is also possible to get the slider items on the client-side and remove the year from the text of all items except the first month of the year.

    I have attached a sample page that demonstrates these approaches. Please check whether it will help you achieve the desired result.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top