Selecting items

5 posts, 1 answers
  1. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 09 Mar 2015 Link to this post

    Hello,

    When using SelectionMode = Multiple, Is it possible to toggle the selected state of the item by clicking it?

    Thanks in advance,

    Alberto
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 11 Mar 2015 Link to this post

    Hello Amige,

    When you set the SelectionMode of the RadTimeline control to Multiple, the selection will behave as described in your post - when you click an item with the left mouse button, the selection state of the item will be changed. You can check the Selection help article which describes this behavior.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 11 Mar 2015 in reply to Martin Link to this post

    Hello Martin,

    What I meant is if is it possible to toggle the selected state of the item by clicking it, even when I am using SelectionMode = Multiple.

    I'd like to have the features of SelectionMode = Multiple plus toggling the selected state of the item by clicking it.

    Regards,

    Alberto
  5. Answer
    Martin
    Admin
    Martin avatar
    1101 posts

    Posted 16 Mar 2015 Link to this post

    Hello Alberto,

    I am not sure that I understand your requirement. It seems that you describe the default behavior when the SelectionMode is set to Multiple - click with the left button of the mouse will select the clicked item and another click will deselect it. You can take a look at the Selection demo and change its SelectionMode to Multiple to see this behavior. Note that the example is in Silverlight but it shares its code and behavior with the WPF version, which you can download from our website if you prefer.

    If this is not what you are looking for I would ask you to send me a drawing of the actual and the expected result. This will help me in the better understanding your scenario and assist you further with it.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Amige
    Amige avatar
    44 posts
    Member since:
    Dec 2013

    Posted 18 Mar 2015 in reply to Martin Link to this post

    Hello Martin,

    I wanted to use SelectionMode = Extended because in my scenario I needed to have the Range selection by click-and-drag feature, but recently I was told that we don't need that feature anymore so now I am going to use SelectionMode = Multiple as you suggested.

    Thanks for your help.

    Regards,

    Alberto
Back to Top
UI for WPF is Visual Studio 2017 Ready