RadListBox Unselect/Uncheck Selected Items

6 posts, 0 answers
  1. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 13 Dec 2012 Link to this post


    Hello, I'm trying to unselect selected item in ListBox, but I have no success yet ( UI ListBox still selected).
    I am trying in this way:
    private void OnStandarBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
    {
     
        if (StandardBox.SelectedItem == null) return;
     
        ...
     
        StandardBox.SelectedItem = null;
    }

    Could you explain What better way to solve this problem?
    Thank You.

  2. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 16 Dec 2012 Link to this post

    People, listen. I'm sick and tired of my waiting for your reply. I don't see the actual reason of my waiting too long. Can you answer me, why should I pay my money for nothing?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sega
    Sega avatar
    4 posts
    Member since:
    Nov 2011

    Posted 16 Dec 2012 Link to this post

    I have exactly the same problem. Is there any workaround for it? Thank you!
  5. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 17 Dec 2012 Link to this post

    I have been updated radcontrols today, seems to be true it's working. (v.2012.3.1129.45)
  6. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 16 Aug 2013 Link to this post

    Hi,

    i'm using the latest Version of RadControls for WPF. I have to RadListBoxes with to different Sources. Now i want to unselect all
    Items from ListBox1 if i click on one item in ListBox2. I tried on "SelectionChanged" -> ListBox1.SelectedItem = null; but without
    any success.

    How do i solve this Problem?

    thanks
    best regards
    WW
  7. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 21 Aug 2013 Link to this post

    Hi Ita,

    We have tested the described scenario and it does work as expected, set SelectedItem to null clears the selection of the ListBox. Please see attached our test project demonstrating the exact approach.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready