Select a range of bar by draging mouse

4 posts, 0 answers
  1. Maheep
    Maheep avatar
    4 posts
    Member since:
    Dec 2010

    Posted 06 Dec 2010 Link to this post

    In our application we have drawn a Histogram using a BarSeriesDefinition. Now I want my user to be able to select a range of value from x-Axis using drag of mouse.
    Rad chart gives option of selected a single item as well as multiple items. But there is not way to select a range of items.
    Can some one guide me, how to achieve this?

     

  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 07 Dec 2010 Link to this post

    Hi Maheep,

    At present, the requested functionality is not available for the control out of the box.
    Nevertheless, you can use the interactivity functions in the control, to select one or more items:

    RadChart1.DefaultView.ChartArea.SelectItem()

    Note that the interactivity functionality is available for WPF4 / Silverlight4 projects only.
    I hope this information helps.

    Best wishes,

    Yavor
    the Telerik team

     

    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Maheep
    Maheep avatar
    4 posts
    Member since:
    Dec 2010

    Posted 07 Dec 2010 Link to this post

    Ok.
    A different approch to the solution can be that I allow user to select a range using "Press <shift> key while selecting the second item in serise" So can I find out that: If user has pressed <shift> key while selecitng the item?
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 10 Dec 2010 Link to this post

    Hello Maheep,

    The following forum post contains more information on how to detect whether the shift key is held down:

    http://stackoverflow.com/questions/973721/c-detecting-if-the-shift-key-is-held-when-opening-a-context-menu

    I hope it helps.

    Best wishes,
    Yavor
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top